Skip to content
Snippets Groups Projects
Commit 8f7616f3 authored by Rémi Bernon's avatar Rémi Bernon :speech_balloon: Committed by Alexandre Julliard
Browse files

winegstreamer: Remove unnecessary unlink in pad-removed callback.

parent 49b0e6c2
No related branches found
No related tags found
No related merge requests found
...@@ -898,10 +898,6 @@ static void pad_removed_cb(GstElement *element, GstPad *pad, gpointer user) ...@@ -898,10 +898,6 @@ static void pad_removed_cb(GstElement *element, GstPad *pad, gpointer user)
if (stream->their_src == pad) if (stream->their_src == pad)
{ {
if (stream->post_sink)
gst_pad_unlink(stream->their_src, stream->post_sink);
else
gst_pad_unlink(stream->their_src, stream->my_sink);
gst_object_unref(stream->their_src); gst_object_unref(stream->their_src);
stream->their_src = NULL; stream->their_src = NULL;
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment