diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-09-15 17:42:13 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-09-15 17:42:13 +0000 |
commit | e9f8d95a4c32786a109528cda249faf4ce4eea18 (patch) | |
tree | 360fc3f1a40a669b39388e9167686a9f3676ee19 /stream | |
parent | 3cb5c5b62aadf9caf6b7412135cab1a111e7f9fa (diff) |
removed code that propagated the slave command dvdnav_event that hasn't been handled for years; patch by Jonas Jermann
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19844 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_dvdnav.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index 5be56942b4..d7a07427ad 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -162,7 +162,6 @@ void dvdnav_stream_add_event(dvdnav_priv_t* dvdnav_priv, int event, unsigned cha //printf("%s: %d\n",__FUNCTION__,event); dvdnav_event_t * dvdnav_event; - mp_cmd_t * cmd; if (!dvdnav_priv->started) return; @@ -174,17 +173,6 @@ void dvdnav_stream_add_event(dvdnav_priv_t* dvdnav_priv, int event, unsigned cha 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) { |