playbin: fix jpeg passthrough to decoder sinks by marking image/* as video stream
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 12 Apr 2013 10:49:27 +0000 (11:49 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 12 Apr 2013 10:51:30 +0000 (11:51 +0100)
gst/playback/gstplaybin2.c

index ad02c89..dbd037d 100644 (file)
@@ -1216,6 +1216,7 @@ init_group (GstPlayBin * playbin, GstSourceGroup * group)
   group->selector[PLAYBIN_STREAM_AUDIO].type = GST_PLAY_SINK_TYPE_AUDIO;
   group->selector[PLAYBIN_STREAM_AUDIO].channels = group->audio_channels;
   group->selector[PLAYBIN_STREAM_VIDEO].media_list[0] = "video/";
+  group->selector[PLAYBIN_STREAM_VIDEO].media_list[1] = "image/";
   group->selector[PLAYBIN_STREAM_VIDEO].type = GST_PLAY_SINK_TYPE_VIDEO;
   group->selector[PLAYBIN_STREAM_VIDEO].channels = group->video_channels;
   group->selector[PLAYBIN_STREAM_TEXT].media_list[0] = "text/";