fix for _negotiated_caps() change
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 15 Aug 2011 10:18:15 +0000 (12:18 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 15 Aug 2011 10:18:15 +0000 (12:18 +0200)
ext/ogg/gstoggmux.c
gst-libs/gst/pbutils/gstdiscoverer.c
gst/playback/gstdecodebin2.c
gst/playback/gstplaysink.c
gst/playback/gstplaysinkaudioconvert.c
gst/playback/gstplaysinkvideoconvert.c
gst/playback/gstsubtitleoverlay.c
tests/check/libs/struct_x86_64.h
tests/check/pipelines/oggmux.c

index e5e1051..a87e4fc 100644 (file)
@@ -983,7 +983,7 @@ gst_ogg_mux_get_headers (GstOggPadData * pad)
 
   GST_LOG_OBJECT (thepad, "getting headers");
 
-  caps = gst_pad_get_negotiated_caps (thepad);
+  caps = gst_pad_get_current_caps (thepad);
   if (caps != NULL) {
     const GValue *streamheader;
 
@@ -1126,7 +1126,7 @@ gst_ogg_mux_send_headers (GstOggMux * mux)
 
     pad = (GstOggPadData *) walk->data;
     thepad = pad->collect.pad;
-    caps = gst_pad_get_negotiated_caps (thepad);
+    caps = gst_pad_get_current_caps (thepad);
     structure = gst_caps_get_structure (caps, 0);
 
     walk = walk->next;
index 140ca39..bdbcb26 100644 (file)
@@ -580,7 +580,7 @@ collect_stream_information (GstDiscoverer * dc, PrivateStream * ps, guint idx)
   g_free (stname);
 
   /* Get caps */
-  caps = gst_pad_get_negotiated_caps (ps->pad);
+  caps = gst_pad_get_current_caps (ps->pad);
   if (!caps) {
     GST_WARNING ("Couldn't get negotiated caps from %s:%s",
         GST_DEBUG_PAD_NAME (ps->pad));
index 0fe084c..88f43ad 100644 (file)
@@ -3083,7 +3083,7 @@ _gst_element_get_linked_caps (GstElement * src, GstElement * sink)
         if (peer) {
           parent = gst_pad_get_parent_element (peer);
           if (parent == sink) {
-            caps = gst_pad_get_negotiated_caps (pad);
+            caps = gst_pad_get_current_caps (pad);
             done = TRUE;
           }
 
@@ -3179,7 +3179,7 @@ gst_decode_chain_get_topology (GstDecodeChain * chain)
   }
 
   /* Caps that resulted in this chain */
-  caps = gst_pad_get_negotiated_caps (chain->pad);
+  caps = gst_pad_get_current_caps (chain->pad);
   if (!caps) {
     caps = get_pad_caps (chain->pad);
     if (G_UNLIKELY (!gst_caps_is_fixed (caps))) {
index 0283051..23e9526 100644 (file)
@@ -2835,7 +2835,7 @@ is_raw_pad (GstPad * pad)
   if (!peer)
     return raw;
 
-  caps = gst_pad_get_negotiated_caps (peer);
+  caps = gst_pad_get_current_caps (peer);
   if (!caps) {
     guint i, n;
 
index 1bef613..08f356e 100644 (file)
@@ -86,7 +86,7 @@ pad_blocked_cb (GstPad * pad, GstProbeType type, gpointer type_data,
 
   /* There must be a peer at this point */
   peer = gst_pad_get_peer (self->sinkpad);
-  caps = gst_pad_get_negotiated_caps (peer);
+  caps = gst_pad_get_current_caps (peer);
   if (!caps)
     caps = gst_pad_get_caps (peer, NULL);
   gst_object_unref (peer);
index bba335e..494d44a 100644 (file)
@@ -86,7 +86,7 @@ pad_blocked_cb (GstPad * pad, GstProbeType type, gpointer type_data,
 
   /* There must be a peer at this point */
   peer = gst_pad_get_peer (self->sinkpad);
-  caps = gst_pad_get_negotiated_caps (peer);
+  caps = gst_pad_get_current_caps (peer);
   if (!caps)
     caps = gst_pad_get_caps (peer, NULL);
   gst_object_unref (peer);
index 4e6088b..6b9e1c8 100644 (file)
@@ -736,7 +736,7 @@ _pad_blocked_cb (GstPad * pad, GstProbeType type, gpointer type_data,
 
     peer = gst_pad_get_peer (self->subtitle_sinkpad);
     if (peer) {
-      subcaps = gst_pad_get_negotiated_caps (peer);
+      subcaps = gst_pad_get_current_caps (peer);
       if (!subcaps) {
         subcaps = gst_pad_get_caps (peer, NULL);
         if (!gst_caps_is_fixed (subcaps)) {
@@ -870,7 +870,7 @@ _pad_blocked_cb (GstPad * pad, GstProbeType type, gpointer type_data,
         GstCaps *video_caps;
         gint fps_n, fps_d;
 
-        video_caps = gst_pad_get_negotiated_caps (video_peer);
+        video_caps = gst_pad_get_current_caps (video_peer);
         if (!video_caps) {
           video_caps = gst_pad_get_caps (video_peer, NULL);
           if (!gst_caps_is_fixed (video_caps)) {
@@ -1811,7 +1811,7 @@ gst_subtitle_overlay_subtitle_sink_link (GstPad * pad, GstPad * peer)
 
   GST_DEBUG_OBJECT (pad, "Linking pad to peer %" GST_PTR_FORMAT, peer);
 
-  caps = gst_pad_get_negotiated_caps (peer);
+  caps = gst_pad_get_current_caps (peer);
   if (!caps) {
     caps = gst_pad_get_caps (peer, NULL);
     if (!gst_caps_is_fixed (caps)) {
index ad8bc7c..9f18dfb 100644 (file)
@@ -91,6 +91,6 @@ GstCheckABIStruct list[] = {
   {"GstVideoRectangle", sizeof (GstVideoRectangle), 16},
   {"GstVideoSinkClass", sizeof (GstVideoSinkClass), 760},
   {"GstVideoSink", sizeof (GstVideoSink), 640},
-  {"GstXOverlayClass", sizeof (GstXOverlayClass), 64},
+  {"GstVideoOverlayIface", sizeof (GstVideoOverlayIface), 64},
   {NULL, 0, 0}
 };
index 7c9607d..6b072bc 100644 (file)
@@ -292,7 +292,7 @@ test_pipeline (const char *pipeline)
     GstStructure *s;
     GstCaps *muxcaps;
 
-    muxcaps = gst_pad_get_negotiated_caps (sinkpad);
+    muxcaps = gst_pad_get_current_caps (sinkpad);
     fail_unless (muxcaps != NULL);
     s = gst_caps_get_structure (muxcaps, 0);
     fail_unless (gst_structure_has_name (s, "application/ogg"));