diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-11-02 14:33:28 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-11-02 14:33:28 +0200 |
commit | 09c4cc55f2beecc91e83de35a767e4a020c37c26 (patch) | |
tree | 3dbe0beab0690da03527f156532146e9021d7f21 | |
parent | 324cc4dc4ae1ccb31092a13ba923561da4027673 (diff) |
qtmux: Don't deref NULL pads in debug output
That tends to crash.
-rw-r--r-- | gst/isomp4/gstqtmux.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index ae78c8073..b1b4ad98e 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -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; |