Web lists-archives.com

[MPlayer-dev-eng] [PATCH 3/3] Add stream control command aliases to the cue driver




STREAM_CTRL_GET_NUM_TITLES and STREAM_CTRL_GET_CURRENT_TITLE
are for the sake of consistency.

Ingo
--- stream/stream_cue.c2	2015-08-13 21:09:34.820589760 +0200
+++ stream/stream_cue.c3	2015-08-13 21:20:13.796588410 +0200
@@ -558,6 +558,7 @@
 
 static int control(stream_t *stream, int cmd, void *arg) {
   switch(cmd) {
+    case STREAM_CTRL_GET_NUM_TITLES:
     case STREAM_CTRL_GET_NUM_CHAPTERS:
     {
       *(unsigned int *)arg = nTracks;
@@ -573,6 +574,7 @@
       }
       break;
     }
+    case STREAM_CTRL_GET_CURRENT_TITLE:
     case STREAM_CTRL_GET_CURRENT_CHAPTER:
     {
       *(unsigned int *)arg = cue_current_pos.track - 1;
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng