mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
rtph264pay: avoid crashing on NULL access in debug message
This commit is contained in:
parent
8f4bfeb698
commit
fa90dfc4df
1 changed files with 1 additions and 1 deletions
|
@ -1047,7 +1047,7 @@ gst_rtp_h264_pay_handle_buffer (GstRTPBasePayload * basepayload,
|
||||||
data = gst_adapter_map (rtph264pay->adapter, size);
|
data = gst_adapter_map (rtph264pay->adapter, size);
|
||||||
GST_DEBUG_OBJECT (basepayload,
|
GST_DEBUG_OBJECT (basepayload,
|
||||||
"got %" G_GSIZE_FORMAT " bytes (%" G_GSIZE_FORMAT ")", size,
|
"got %" G_GSIZE_FORMAT " bytes (%" G_GSIZE_FORMAT ")", size,
|
||||||
gst_buffer_get_size (buffer));
|
buffer ? gst_buffer_get_size (buffer) : 0);
|
||||||
|
|
||||||
if (buffer) {
|
if (buffer) {
|
||||||
if (!GST_CLOCK_TIME_IS_VALID (dts))
|
if (!GST_CLOCK_TIME_IS_VALID (dts))
|
||||||
|
|
Loading…
Reference in a new issue