timeline: Initialize as NULL the preview sinks when getting them.

This way, if there is a problem getting the properties from the
playsink, we do not return garbage.
This commit is contained in:
Xabier Rodriguez Calvar 2011-11-11 17:09:34 +01:00 committed by Sebastian Dröge
parent 9088d7def3
commit fd30629eed

View file

@ -954,7 +954,7 @@ ges_timeline_pipeline_get_thumbnail_rgb24 (GESTimelinePipeline * self,
GstElement *
ges_timeline_pipeline_preview_get_video_sink (GESTimelinePipeline * self)
{
GstElement *sink;
GstElement *sink = NULL;
g_object_get (self->priv->playsink, "video-sink", &sink, NULL);
@ -991,7 +991,7 @@ ges_timeline_pipeline_preview_set_video_sink (GESTimelinePipeline * self,
GstElement *
ges_timeline_pipeline_preview_get_audio_sink (GESTimelinePipeline * self)
{
GstElement *sink;
GstElement *sink = NULL;
g_object_get (self->priv->playsink, "audio-sink", &sink, NULL);