mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
qtmux: Don't deref NULL pads in debug output
That tends to crash.
This commit is contained in:
parent
324cc4dc4a
commit
09c4cc55f2
1 changed files with 6 additions and 2 deletions
|
@ -3591,8 +3591,12 @@ find_best_pad (GstQTMux * qtmux, GstCollectPads * pads)
|
|||
gst_buffer_unref (tmp_buf);
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (qtmux, "Choosing pad %s:%s",
|
||||
GST_DEBUG_PAD_NAME (best_pad->collect.pad));
|
||||
if (best_pad) {
|
||||
GST_DEBUG_OBJECT (qtmux, "Choosing pad %s:%s",
|
||||
GST_DEBUG_PAD_NAME (best_pad->collect.pad));
|
||||
} else {
|
||||
GST_DEBUG_OBJECT (qtmux, "No best pad: EOS");
|
||||
}
|
||||
}
|
||||
|
||||
return best_pad;
|
||||
|
|
Loading…
Reference in a new issue