From de99d1f517ffc37dfaa6e9549cc8bdd68472c701 Mon Sep 17 00:00:00 2001 From: Taeho Oh Date: Sun, 24 Jan 2016 00:41:55 +0900 Subject: [PATCH] Not decode audio. Only video is necessary. --- omvs_gst.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/omvs_gst.c b/omvs_gst.c index 9d623dd..8eb2328 100644 --- a/omvs_gst.c +++ b/omvs_gst.c @@ -27,6 +27,7 @@ typedef struct _OMVSGstImpl { } OMVSGstImpl; OMVSGst omvs_gst_open(const gchar *uri, const gchar *filename) { + guint flags; OMVSGstImpl *gst_impl; GstElement *play; GstElement *conv; @@ -39,6 +40,9 @@ OMVSGst omvs_gst_open(const gchar *uri, const gchar *filename) { gst_impl = g_malloc0(sizeof(OMVSGstImpl)); gst_impl->play = play = gst_element_factory_make("playbin", "play"); g_object_set(G_OBJECT(play), "uri", uri, NULL); + g_object_get(play, "flags", &flags, NULL); + flags &= (~0x00000002); + g_object_set(play, "flags", flags, NULL); conv = gst_element_factory_make("queue", "conv"); png = gst_element_factory_make("pngenc", "png"); g_object_set(G_OBJECT(png), "snapshot", 1, "compression-level", 9, NULL);