changeset 19838:0740b6334f06

removed code that propagated the slave command dvdnav_event that hasn't been handled for years; patch by Jonas Jermann
author nicodvb
date Fri, 15 Sep 2006 17:42:13 +0000
parents e507a91a37ed
children 5b78f1c14256
files stream/stream_dvdnav.c
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvdnav.c	Fri Sep 15 17:26:30 2006 +0000
+++ b/stream/stream_dvdnav.c	Fri Sep 15 17:42:13 2006 +0000
@@ -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) {