mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
rtspsrc: Only free GCheckSum after its last usage
https://bugzilla.gnome.org/show_bug.cgi?id=705760
This commit is contained in:
parent
24b4ea3418
commit
282afae244
1 changed files with 1 additions and 1 deletions
|
@ -3906,13 +3906,13 @@ gst_rtspsrc_handle_data (GstRTSPSrc * src, GstRTSPMessage * message)
|
||||||
|
|
||||||
stream_id =
|
stream_id =
|
||||||
g_strdup_printf ("%s/%d", g_checksum_get_string (cs), ostream->id);
|
g_strdup_printf ("%s/%d", g_checksum_get_string (cs), ostream->id);
|
||||||
g_checksum_free (cs);
|
|
||||||
event = gst_event_new_stream_start (stream_id);
|
event = gst_event_new_stream_start (stream_id);
|
||||||
gst_event_set_group_id (event, group_id);
|
gst_event_set_group_id (event, group_id);
|
||||||
|
|
||||||
g_free (stream_id);
|
g_free (stream_id);
|
||||||
gst_rtspsrc_stream_push_event (src, ostream, event);
|
gst_rtspsrc_stream_push_event (src, ostream, event);
|
||||||
}
|
}
|
||||||
|
g_checksum_free (cs);
|
||||||
|
|
||||||
gst_rtspsrc_activate_streams (src);
|
gst_rtspsrc_activate_streams (src);
|
||||||
src->need_activate = FALSE;
|
src->need_activate = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue