pulsesink: Add null check to fix crash 66/239966/1
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 31 Jul 2020 05:42:49 +0000 (14:42 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 31 Jul 2020 05:43:20 +0000 (14:43 +0900)
[Version] 1.16.2-7
[Issue Type] Bug fix

Change-Id: I533716bd1d22a245ec709219b3df6572f4a3abdc
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
ext/pulse/pulsesink.c
packaging/gst-plugins-good.spec

index b5eadb4..2e8dfd1 100644 (file)
@@ -785,7 +785,7 @@ gst_pulsering_stream_latency_cb (pa_stream * s, void *userdata)
       info->write_index, info->read_index_corrupt, info->read_index,
       info->sink_usec, sink_usec);
 #ifdef __TIZEN__
-  if (!psink->auto_render_delay)
+  if (!psink || !psink->auto_render_delay)
     return;
 
   if (sink_usec < info->sink_usec)
index f2a7cf0..f0f5beb 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:           gst-plugins-good
 Version:        1.16.2
-Release:        6
+Release:        7
 License:        LGPL-2.1+
 Summary:        GStreamer Streaming-Media Framework Plug-Ins
 Url:            http://gstreamer.freedesktop.org/