88 // Check if the xv sink is usable |
88 // Check if the xv sink is usable |
89 if (gst_element_set_state(videoSink, GST_STATE_READY) != GST_STATE_CHANGE_SUCCESS) { |
89 if (gst_element_set_state(videoSink, GST_STATE_READY) != GST_STATE_CHANGE_SUCCESS) { |
90 gst_object_unref(GST_OBJECT(videoSink)); |
90 gst_object_unref(GST_OBJECT(videoSink)); |
91 videoSink = 0; |
91 videoSink = 0; |
92 } else { |
92 } else { |
93 // Note that this should not really be neccessary as these are |
93 // Note that this should not really be necessary as these are |
94 // default values, though under certain conditions values are retained |
94 // default values, though under certain conditions values are retained |
95 // even between application instances. (reproducible on 0.10.16/Gutsy) |
95 // even between application instances. (reproducible on 0.10.16/Gutsy) |
96 g_object_set(G_OBJECT(videoSink), "brightness", 0, (const char*)NULL); |
96 g_object_set(G_OBJECT(videoSink), "brightness", 0, (const char*)NULL); |
97 g_object_set(G_OBJECT(videoSink), "contrast", 0, (const char*)NULL); |
97 g_object_set(G_OBJECT(videoSink), "contrast", 0, (const char*)NULL); |
98 g_object_set(G_OBJECT(videoSink), "hue", 0, (const char*)NULL); |
98 g_object_set(G_OBJECT(videoSink), "hue", 0, (const char*)NULL); |