mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 01:02:19 +00:00
factory: keep ref to factory while media active
While the media from a factory is alive, keep a ref to the factory. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=663555
This commit is contained in:
parent
8fcdca987d
commit
37a7ec8033
1 changed files with 2 additions and 2 deletions
|
@ -653,8 +653,8 @@ gst_rtsp_media_factory_construct (GstRTSPMediaFactory * factory,
|
|||
if (!gst_rtsp_media_is_reusable (media)) {
|
||||
/* when not reusable, connect to the unprepare signal to remove the item
|
||||
* from our cache when it gets unprepared */
|
||||
g_signal_connect (media, "unprepared", (GCallback) media_unprepared,
|
||||
factory);
|
||||
g_signal_connect_object (media, "unprepared",
|
||||
(GCallback) media_unprepared, factory, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue