summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2014-05-15 19:37:05 +0200
committerThibault Saunier <tsaunier@gnome.org>2014-05-15 20:07:58 +0200
commit10c3e97f420fbf7f3447290a9943451f7c39f485 (patch)
treec59666913e67107ef233abddfd4262a2025bf870
parent19df7082076ebdc11523b3b51787c87f9507efe7 (diff)
ges: Add a queue after the decoder in video test src
-rw-r--r--ges/ges-video-source.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/ges/ges-video-source.c b/ges/ges-video-source.c
index d99a4791..b24e5f73 100644
--- a/ges/ges-video-source.c
+++ b/ges/ges-video-source.c
@@ -90,6 +90,7 @@ ges_video_source_create_element (GESTrackElement * trksrc)
{
GstElement *topbin;
GstElement *sub_element;
+ GstElement *queue = gst_element_factory_make ("queue", NULL);
GESVideoSourceClass *source_class = GES_VIDEO_SOURCE_GET_CLASS (trksrc);
GESVideoSource *self;
GstElement *positionner, *videoscale, *videorate, *capsfilter, *videoconvert,
@@ -132,12 +133,13 @@ ges_video_source_create_element (GESTrackElement * trksrc)
("Missing element '%s' - check your GStreamer installation.",
"deinterlace"), ("deinterlacing won't work"));
topbin =
- ges_source_create_topbin ("videosrcbin", sub_element, videoconvert,
- positionner, videoscale, videorate, capsfilter, NULL);
+ ges_source_create_topbin ("videosrcbin", sub_element, queue,
+ videoconvert, positionner, videoscale, videorate, capsfilter, NULL);
} else {
topbin =
- ges_source_create_topbin ("videosrcbin", sub_element, videoconvert,
- deinterlace, positionner, videoscale, videorate, capsfilter, NULL);
+ ges_source_create_topbin ("videosrcbin", sub_element, queue,
+ videoconvert, deinterlace, positionner, videoscale, videorate,
+ capsfilter, NULL);
}
parent = ges_timeline_element_get_parent (GES_TIMELINE_ELEMENT (trksrc));