mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 13:56:32 +00:00
stream: Set the object name to the stream id
Makes it more meaningful in debug logs (instead of streamNNNNN) Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1187>
This commit is contained in:
parent
c95a7ab1ca
commit
08dc5d2961
1 changed files with 4 additions and 0 deletions
|
@ -241,6 +241,10 @@ gst_stream_set_stream_id (GstStream * stream, const gchar * stream_id)
|
|||
g_random_int (), g_random_int ());
|
||||
}
|
||||
|
||||
/* We hold the object lock, replace directly */
|
||||
g_free (GST_OBJECT_NAME (stream));
|
||||
GST_OBJECT_NAME (stream) = g_strdup (stream->stream_id);
|
||||
|
||||
GST_OBJECT_UNLOCK (stream);
|
||||
|
||||
if (!stream_id)
|
||||
|
|
Loading…
Reference in a new issue