From: Mark Nauwelaerts Date: Fri, 7 Sep 2012 12:11:39 +0000 (+0200) Subject: rtph264pay: avoid crashing on NULL access in debug message X-Git-Tag: RELEASE-0.11.94~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa90dfc4df1104eaf43ae6091e461d2d89456573;p=platform%2Fupstream%2Fgst-plugins-good.git rtph264pay: avoid crashing on NULL access in debug message --- diff --git a/gst/rtp/gstrtph264pay.c b/gst/rtp/gstrtph264pay.c index 0db6555..7b08525 100644 --- a/gst/rtp/gstrtph264pay.c +++ b/gst/rtp/gstrtph264pay.c @@ -1047,7 +1047,7 @@ gst_rtp_h264_pay_handle_buffer (GstRTPBasePayload * basepayload, data = gst_adapter_map (rtph264pay->adapter, size); GST_DEBUG_OBJECT (basepayload, "got %" G_GSIZE_FORMAT " bytes (%" G_GSIZE_FORMAT ")", size, - gst_buffer_get_size (buffer)); + buffer ? gst_buffer_get_size (buffer) : 0); if (buffer) { if (!GST_CLOCK_TIME_IS_VALID (dts))