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

ib subversion at mplayerhq.hu
Tue Aug 25 11:32:26 CEST 2015


Author: ib
Date: Tue Aug 25 11:32:25 2015
New Revision: 37462

Log:
Add stream control command STREAM_CTRL_GET_NUM_ANGLES to the cue driver.

This is to retrieve information whether a video or audio image is being
played.

Modified:
   trunk/stream/stream_cue.c

Modified: trunk/stream/stream_cue.c
==============================================================================
--- trunk/stream/stream_cue.c	Tue Aug 25 11:31:34 2015	(r37461)
+++ trunk/stream/stream_cue.c	Tue Aug 25 11:32:25 2015	(r37462)
@@ -580,6 +580,11 @@ static int control(stream_t *stream, int
       *(unsigned int *)arg = cue_current_pos.track - 1;
       return STREAM_OK;
     }
+    case STREAM_CTRL_GET_NUM_ANGLES:
+    {
+      *(unsigned int *)arg = tracks[cue_current_pos.track - 1].mode != AUDIO;
+      return STREAM_OK;
+    }
   }
   return STREAM_UNSUPPORTED;
 }


More information about the MPlayer-cvslog mailing list