playsink: Fix the block diagram of deinterlace bin.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=702465
This commit is contained in:
Sreerenj Balachandran 2013-06-17 16:02:41 +03:00 committed by Wim Taymans
parent b5f7a621bb
commit 8a2dbeb1ef

View file

@ -1325,16 +1325,16 @@ try_element (GstPlaySink * playsink, GstElement * element, gboolean unref)
} }
/* make the element (bin) that contains the elements needed to perform /* make the element (bin) that contains the elements needed to perform
* video display. Only used for *raw* video streams. * video deinterlacing. Only used for *raw* video streams.
* *
* +------------------------------------------------------------+ * +---------------------------------------+
* | vbin | * | vbin |
* | +-------+ +----------+ +----------+ +---------+ | * | +----------+ +-----------+ |
* | | queue | |colorspace| |videoscale| |videosink| | * | |colorspace| |deinterlace| |
* | +-sink src-sink src-sink src-sink | | * | +-sink src-sink src-+ |
* | | +-------+ +----------+ +----------+ +---------+ | * | | +----------+ +-----------+ | |
* sink-+ | * sink-+ +-src
* +------------------------------------------------------------+ * +---------------------------------------+
* *
*/ */
static GstPlayVideoDeinterlaceChain * static GstPlayVideoDeinterlaceChain *
@ -1567,8 +1567,7 @@ update_colorbalance (GstPlaySink * playsink)
channel->min_value + new_val * ((gdouble) channel->max_value - channel->min_value + new_val * ((gdouble) channel->max_value -
(gdouble) channel->min_value); (gdouble) channel->min_value);
gst_color_balance_set_value (balance, channel, gst_color_balance_set_value (balance, channel, (gint) (new_val + 0.5));
(gint) (new_val + 0.5));
} }
g_signal_handler_unblock (balance, playsink->colorbalance_value_changed_id); g_signal_handler_unblock (balance, playsink->colorbalance_value_changed_id);