mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
rsvgoverlay: fix crash due to double adapter unref
This commit is contained in:
parent
d405ea2e63
commit
e1e827d364
1 changed files with 3 additions and 2 deletions
|
@ -336,7 +336,7 @@ gst_rsvg_overlay_data_sink_event (GstPad * pad, GstEvent * event)
|
||||||
GST_RSVG_UNLOCK (overlay);
|
GST_RSVG_UNLOCK (overlay);
|
||||||
}
|
}
|
||||||
|
|
||||||
case GST_EVENT_FLUSH_START:
|
case GST_EVENT_FLUSH_STOP:
|
||||||
gst_adapter_clear (overlay->adapter);
|
gst_adapter_clear (overlay->adapter);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -436,10 +436,11 @@ gst_rsvg_overlay_stop (GstBaseTransform * btrans)
|
||||||
|
|
||||||
if (overlay->handle) {
|
if (overlay->handle) {
|
||||||
g_object_unref (overlay->handle);
|
g_object_unref (overlay->handle);
|
||||||
g_object_unref (overlay->adapter);
|
|
||||||
overlay->handle = NULL;
|
overlay->handle = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_adapter_clear (overlay->adapter);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue