Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
uridecodebin: Use gst_object_ref instead of g_object_ref
It's more debugging friendly (tracer for example)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1113>
  • Loading branch information
seungha-yang committed Apr 20, 2021
1 parent df88b10 commit 3a1816b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gst/playback/gsturidecodebin.c
Expand Up @@ -1683,7 +1683,7 @@ remove_decoders (GstURIDecodeBin * bin, gboolean force)

gst_element_set_state (decoder, GST_STATE_READY);
/* add it to our list of pending decodebins */
g_object_ref (decoder);
gst_object_ref (decoder);
gst_bin_remove (GST_BIN_CAST (bin), decoder);
/* restore some properties we might have changed */
g_object_set (decoder, "sink-caps", NULL, NULL);
Expand Down

0 comments on commit 3a1816b

Please sign in to comment.