[MPlayer-cvslog] r37461 - trunk/stream/stream_cue.c

ib subversion at mplayerhq.hu
Tue Aug 25 11:31:34 CEST 2015


Author: ib
Date: Tue Aug 25 11:31:34 2015
New Revision: 37461

Log:
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, since they are also available for CDs, VCDs and
DVDs through their respective drivers.

Modified:
   trunk/stream/stream_cue.c

Modified: trunk/stream/stream_cue.c
==============================================================================
--- trunk/stream/stream_cue.c	Tue Aug 25 11:30:41 2015	(r37460)
+++ trunk/stream/stream_cue.c	Tue Aug 25 11:31:34 2015	(r37461)
@@ -558,6 +558,7 @@ static int cue_read(stream_t *stream, ch
 
 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 @@ static int control(stream_t *stream, int
       }
       break;
     }
+    case STREAM_CTRL_GET_CURRENT_TITLE:
     case STREAM_CTRL_GET_CURRENT_CHAPTER:
     {
       *(unsigned int *)arg = cue_current_pos.track - 1;


More information about the MPlayer-cvslog mailing list