[0.11] gst-plugins-base: playsink: avoid finding sink in NULL bin in corner case

Sebastian Dröge slomo at kemper.freedesktop.org
Wed Jan 25 02:51:10 PST 2012


Module: gst-plugins-base
Branch: 0.11
Commit: e5f6675ea3a09b37f7df656bab12d2efe3bcc830
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=e5f6675ea3a09b37f7df656bab12d2efe3bcc830

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Thu Jan 19 16:32:05 2012 +0100

playsink: avoid finding sink in NULL bin in corner case

---

 gst/playback/gstplaysink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c
index 57d194f..a757b2d 100644
--- a/gst/playback/gstplaysink.c
+++ b/gst/playback/gstplaysink.c
@@ -1530,7 +1530,7 @@ gen_text_chain (GstPlaySink * playsink)
           chain->queue = NULL;
         }
         /* try to set sync to true but it's no biggie when we can't */
-        if ((elem =
+        if (chain->sink && (elem =
                 gst_play_sink_find_property_sinks (playsink, chain->sink,
                     "sync", G_TYPE_BOOLEAN)))
           g_object_set (elem, "sync", TRUE, NULL);



More information about the gstreamer-commits mailing list