Need clarification on gstcolorbalance
Tim-Philipp Müller
t.i.m at zen.co.uk
Sun May 20 04:08:34 PDT 2012
On Sun, 2012-05-20 at 13:17 +0530, Yogesh Marwaha wrote:
> Hi,
>
> I'm trying to add options of contrast, brightness etc. in my app.
> GStreamer's videobalance and xvimagesink elements support
> GstColorBalance interface. But in case of xvimagesink, I'm unable
> to get a list of channels.
>
> Following is the code snippet I'm using: -
>
> GstElement *a = gst_element_factory_make("xvimagesink",
> "gravity-playbin-video-a");
> if(GST_IS_COLOR_BALANCE(a)){
> (...)
> What could be the cause of problem? How should I do it properly?
Try adding a
gst_element_set_state (a, GST_STATE_READY);
right after creating it.
Cheers
-Tim
More information about the gstreamer-devel
mailing list