[vlc-commits] vdr: implement ACCESS_GET_CONTENT_TYPE

Rémi Denis-Courmont git at videolan.org
Sat Jul 25 17:10:39 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jul 25 17:55:26 2015 +0300| [d9ef65a4579b609971714a12fd71ed1e9e76095c] | committer: Rémi Denis-Courmont

vdr: implement ACCESS_GET_CONTENT_TYPE

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d9ef65a4579b609971714a12fd71ed1e9e76095c
---

 modules/access/vdr.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/access/vdr.c b/modules/access/vdr.c
index 46f709e..2235e8c 100644
--- a/modules/access/vdr.c
+++ b/modules/access/vdr.c
@@ -308,6 +308,11 @@ static int Control( access_t *p_access, int i_query, va_list args )
             *va_arg( args, unsigned * ) = p_sys->cur_seekpoint;
             break;
 
+        case ACCESS_GET_CONTENT_TYPE:
+            *va_arg( args, char ** ) =
+                strdup( p_sys->b_ts_format ? "video/MP2T" : "video/mpeg" );
+            break;
+
         case ACCESS_SET_TITLE:
             /* ignore - only one title */
             break;



More information about the vlc-commits mailing list