mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
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:
parent
9088d7def3
commit
fd30629eed
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue