[MPlayer-cvslog] r19844 - trunk/stream/stream_dvdnav.c

nicodvb subversion at mplayerhq.hu
Fri Sep 15 19:42:14 CEST 2006


Author: nicodvb
Date: Fri Sep 15 19:42:13 2006
New Revision: 19844

Modified:
   trunk/stream/stream_dvdnav.c

Log:
removed code that propagated the slave command dvdnav_event that hasn't been handled for years; patch by Jonas Jermann

Modified: trunk/stream/stream_dvdnav.c
==============================================================================
--- trunk/stream/stream_dvdnav.c	(original)
+++ trunk/stream/stream_dvdnav.c	Fri Sep 15 19:42:13 2006
@@ -162,7 +162,6 @@
   //printf("%s: %d\n",__FUNCTION__,event);
 
   dvdnav_event_t * dvdnav_event;
-  mp_cmd_t * cmd;
 
   if (!dvdnav_priv->started) return;
 
@@ -174,17 +173,6 @@
   dvdnav_event->details=calloc(1,len);
   memcpy(dvdnav_event->details,buf,len);
   dvdnav_event->len=len;
-
-  if (!(cmd = calloc(1,sizeof(*cmd)))) {
-    mp_msg(MSGT_OPEN,MSGL_V, "%s: mp_cmd_t: out of memory!\n",__FUNCTION__);
-    free(dvdnav_event->details);
-    free(dvdnav_event);
-    return;
-  }
-  cmd->id=MP_CMD_DVDNAV_EVENT; // S+event;
-  cmd->name=strdup("dvdnav_event"); // FIXME: do I really need a 'name'?
-  cmd->nargs=1;
-  cmd->args[0].v.v=dvdnav_event;
 }
 
 int dvdnav_stream_read(dvdnav_priv_t * dvdnav_priv, unsigned char *buf, int *len) {



More information about the MPlayer-cvslog mailing list