]> git.sesse.net Git - vlc/commitdiff
Fixed dummy input Control function.
authorLaurent Aimar <fenrir@videolan.org>
Thu, 3 Sep 2009 21:01:09 +0000 (23:01 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 3 Sep 2009 21:01:09 +0000 (23:01 +0200)
DEMUX_GET_PTS_DELAY must not fail for an access_demux.

modules/misc/dummy/input.c

index b7cedf3a0ee8835a4ee85b57348bb49f52dbc307..c0879ab2b987ee01ab098f9e8f6a76ed57b1026a 100644 (file)
@@ -117,5 +117,15 @@ void CloseDemux ( vlc_object_t *p_this )
 static int DemuxControl( demux_t *p_demux, int i_query, va_list args )
 {
     (void)p_demux; (void)i_query; (void)args;
-    return VLC_EGENERIC;
+    switch( i_query )
+    {
+    case DEMUX_GET_PTS_DELAY:
+    {
+        int64_t *pi_pts_delay = va_arg( args, int64_t * );
+        *pi_pts_delay = DEFAULT_PTS_DELAY;
+        return VLC_SUCCESS;
+    }
+    default:
+        return VLC_EGENERIC;
+    }
 }