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);