Derek Lesho : winegstreamer: Replace gst_pad_get_current_caps with gst_pad_query_caps.

Alexandre Julliard julliard at winehq.org
Wed Oct 28 15:58:17 CDT 2020


Module: wine
Branch: master
Commit: f26e81cf38b2bf0305581522d3d980d3508a43ea
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f26e81cf38b2bf0305581522d3d980d3508a43ea

Author: Derek Lesho <dlesho at codeweavers.com>
Date:   Tue Oct 27 11:12:04 2020 -0500

winegstreamer: Replace gst_pad_get_current_caps with gst_pad_query_caps.

Signed-off-by: Derek Lesho <dlesho at codeweavers.com>
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winegstreamer/media_source.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winegstreamer/media_source.c b/dlls/winegstreamer/media_source.c
index 0991710755c..d6c7837e544 100644
--- a/dlls/winegstreamer/media_source.c
+++ b/dlls/winegstreamer/media_source.c
@@ -388,7 +388,7 @@ static const IMFMediaStreamVtbl media_stream_vtbl =
    the user throws at us through gstreamer's caps negotiation. */
 static HRESULT media_stream_connect_to_sink(struct media_stream *stream)
 {
-    GstCaps *source_caps = gst_pad_get_current_caps(stream->their_src);
+    GstCaps *source_caps = gst_pad_query_caps(stream->their_src, NULL);
     const gchar *stream_type;
 
     if (!source_caps)




More information about the wine-cvs mailing list