diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecs/gsth264picture.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecs/gsth264picture.c index 8239b1575d..b79307391a 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecs/gsth264picture.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecs/gsth264picture.c @@ -855,8 +855,10 @@ normal_bump: return TRUE; } - GST_TRACE ("No empty frame buffer, but lowest poc %d > current poc %d," - " no need bumping.", lowest_poc, to_insert->pic_order_cnt); + if (to_insert) { + GST_TRACE ("No empty frame buffer, but lowest poc %d > current poc %d," + " no need bumping.", lowest_poc, to_insert->pic_order_cnt); + } return FALSE; }