[longomatch] Fix link in the capturer with dv sources
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix link in the capturer with dv sources
- Date: Mon, 8 Apr 2013 11:14:28 +0000 (UTC)
commit 2d460e1ef25067f892db23f4e82f628f9cc2a0d0
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Apr 8 13:11:40 2013 +0200
Fix link in the capturer with dv sources
libcesarplayer/gst-camera-capturer.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libcesarplayer/gst-camera-capturer.c b/libcesarplayer/gst-camera-capturer.c
index 77cd0f7..5952615 100644
--- a/libcesarplayer/gst-camera-capturer.c
+++ b/libcesarplayer/gst-camera-capturer.c
@@ -873,7 +873,7 @@ gst_camera_capturer_prepare_uri_source (GstCameraCapturer *gcc)
static GstElement *
gst_camera_capturer_prepare_dv_source (GstCameraCapturer *gcc)
{
- GstElement *bin, *decodebin, *deinterlacer;
+ GstElement *bin, *decodebin, *colorspace, *deinterlacer;
GstPad *video_pad, *src_pad;
GST_INFO_OBJECT (gcc, "Creating dv source");
@@ -883,9 +883,11 @@ gst_camera_capturer_prepare_dv_source (GstCameraCapturer *gcc)
gcc->priv->source_decoder_bin = gst_bin_new ("decoder");
bin = gcc->priv->source_decoder_bin;
decodebin = gst_element_factory_make ("decodebin2", NULL);
- deinterlacer = gst_element_factory_make ("ffdeinterlace", "video-pad");
+ colorspace = gst_element_factory_make ("ffmpegcolorspace", "video-pad");
+ deinterlacer = gst_element_factory_make ("ffdeinterlace", NULL);
- gst_bin_add_many (GST_BIN (bin), decodebin, deinterlacer, NULL);
+ gst_bin_add_many (GST_BIN (bin), decodebin, colorspace, deinterlacer, NULL);
+ gst_element_link (colorspace, deinterlacer);
/* add ghostpad */
video_pad = gst_element_get_static_pad (deinterlacer, "src");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]