[rhythmbox/gstreamer-1.0: 26/39] xfade: use gst_pad_query_caps



commit 36508e314b9a5c58fe58dba75851e498b81a6c64
Author: Jonathan Matthew <jonathan d14n org>
Date:   Thu Nov 8 07:01:56 2012 +1000

    xfade: use gst_pad_query_caps

 backends/gstreamer/rb-player-gst-xfade.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backends/gstreamer/rb-player-gst-xfade.c b/backends/gstreamer/rb-player-gst-xfade.c
index 9106d5e..3d3eba8 100644
--- a/backends/gstreamer/rb-player-gst-xfade.c
+++ b/backends/gstreamer/rb-player-gst-xfade.c
@@ -1953,7 +1953,7 @@ stream_pad_added_cb (GstElement *decoder, GstPad *pad, RBXFadeStream *stream)
 	GstPad *vpad;
 
 	/* make sure this is an audio pad */
-	caps = gst_pad_get_current_caps (pad);
+	caps = gst_pad_query_caps (pad, NULL);
 	if (caps == NULL) {
 		caps = gst_pad_query_caps (pad, NULL);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]