diff mplayer.c @ 36459:e6953c9c223a

Add mpctx_get_stream(). This avoids direct context access.
author ib
date Tue, 17 Dec 2013 22:40:51 +0000
parents 4634a3085efc
children ed153683310d
line wrap: on
line diff
--- a/mplayer.c	Tue Dec 17 22:31:30 2013 +0000
+++ b/mplayer.c	Tue Dec 17 22:40:51 2013 +0000
@@ -375,6 +375,11 @@
     return mpctx->osd_function;
 }
 
+void *mpctx_get_stream(MPContext *mpctx)
+{
+    return mpctx->stream;
+}
+
 static int is_valid_metadata_type(metadata_t type)
 {
     switch (type) {