diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-04-30 08:53:19 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-04-30 10:14:12 +0200 |
commit | fc38c22f1b394ee7a29680d618505aac978bf849 (patch) | |
tree | 9326f9f7372e98431577b3ecfea7f67e62a79f92 | |
parent | 940576244cbb8857fcceace1d92934018e20a8d4 (diff) | |
download | gstreamer-plugins-bad-fc38c22f1b394ee7a29680d618505aac978bf849.tar.gz |
hlsdemux: Only unref pending buffer if there is one
-rw-r--r-- | ext/hls/gsthlsdemux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 080a39baa..b835acb78 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -972,7 +972,8 @@ _src_event (GstPad * pad, GstObject * parent, GstEvent * event) demux->pending_buffer = NULL; } } else { - gst_buffer_unref (demux->pending_buffer); + if (demux->pending_buffer) + gst_buffer_unref (demux->pending_buffer); demux->pending_buffer = NULL; } |