[vlc-commits] gme: add DEMUX_GET_TITLE
Rémi Denis-Courmont
git at videolan.org
Sun Dec 3 13:27:22 CET 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 3 12:14:15 2017 +0200| [c465e921b7248244f404658b4db35b4f253595b3] | committer: Rémi Denis-Courmont
gme: add DEMUX_GET_TITLE
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c465e921b7248244f404658b4db35b4f253595b3
---
modules/demux/gme.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/demux/gme.c b/modules/demux/gme.c
index b144ca6c05..d89ac815cf 100644
--- a/modules/demux/gme.c
+++ b/modules/demux/gme.c
@@ -211,7 +211,6 @@ static int Demux (demux_t *demux)
return 0;
demux->info.i_update |= INPUT_UPDATE_TITLE;
- demux->info.i_title = sys->track_id;
gme_start_track (sys->emu, sys->track_id);
}
@@ -327,10 +326,13 @@ static int Control (demux_t *demux, int query, va_list args)
break;
gme_start_track (sys->emu, track_id);
demux->info.i_update |= INPUT_UPDATE_TITLE;
- demux->info.i_title = track_id;
sys->track_id = track_id;
return VLC_SUCCESS;
}
+
+ case DEMUX_GET_TITLE:
+ *va_arg(args, int *) = sys->track_id;
+ return VLC_SUCCESS;
}
return VLC_EGENERIC;
More information about the vlc-commits
mailing list