mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
pcapparse: Remove unneeded unref and only set pad caps if we have caps
Fixes crashes due to invalid unrefs. https://bugzilla.gnome.org/show_bug.cgi?id=705957
This commit is contained in:
parent
ddee83ef0b
commit
131c263248
1 changed files with 2 additions and 3 deletions
|
@ -494,6 +494,7 @@ gst_pcap_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
|
|||
GST_CLOCK_TIME_IS_VALID (self->cur_ts)) {
|
||||
GstSegment segment;
|
||||
|
||||
if (self->caps)
|
||||
gst_pad_set_caps (self->src_pad, self->caps);
|
||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||
segment.start = self->cur_ts;
|
||||
|
@ -607,7 +608,5 @@ gst_pcap_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
break;
|
||||
}
|
||||
|
||||
gst_object_unref (self);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue