winegstreamer: Remove unnecessary unlink in pad-removed callback.

This commit is contained in:
Rémi Bernon 2023-03-15 10:56:46 +01:00 committed by Alexandre Julliard
parent 49b0e6c22d
commit 8f7616f360

View file

@ -898,10 +898,6 @@ static void pad_removed_cb(GstElement *element, GstPad *pad, gpointer user)
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);
stream->their_src = NULL;
return;