summaryrefslogtreecommitdiffstats
path: root/gst-libs/gst/play
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2004-01-12 03:40:18 +0000
committerDavid Schleef <ds@schleef.org>2004-01-12 03:40:18 +0000
commitd33b0d62aaf6fe0043d3d5b494935b60cd68c808 (patch)
treefb3e4f0727cc224919d3aff4983cb74a251d4e90 /gst-libs/gst/play
parent60809db458162408f0effa28c5819800c78ed90d (diff)
downloadgst-plugins-bad-d33b0d62aaf6fe0043d3d5b494935b60cd68c808.tar.gz
gst-plugins-bad-d33b0d62aaf6fe0043d3d5b494935b60cd68c808.tar.bz2
gst-plugins-bad-d33b0d62aaf6fe0043d3d5b494935b60cd68c808.zip
Remove all usage of gst_pad_get_caps(), and replace it with gst_pad_get_allowed_caps() or gst_pad_get_negotiated_cap().
Original commit message from CVS: Remove all usage of gst_pad_get_caps(), and replace it with gst_pad_get_allowed_caps() or gst_pad_get_negotiated_cap().
Diffstat (limited to 'gst-libs/gst/play')
-rw-r--r--gst-libs/gst/play/gstplay.c2
-rw-r--r--gst-libs/gst/play/play.c2
-rw-r--r--gst-libs/gst/play/play.old.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/gst-libs/gst/play/gstplay.c b/gst-libs/gst/play/gstplay.c
index 7c7ef849..bcc5c4d1 100644
--- a/gst-libs/gst/play/gstplay.c
+++ b/gst-libs/gst/play/gstplay.c
@@ -928,7 +928,7 @@ gst_play_get_sink_element (GstPlay *play,
gboolean has_video_cap = FALSE;
gboolean has_audio_cap = FALSE;
- caps = gst_pad_get_caps (GST_PAD (pads->data));
+ caps = gst_pad_get_negotiated_caps (GST_PAD (pads->data));
structure = gst_caps_get_structure (caps, 0);
if (strcmp (gst_structure_get_name (structure),
diff --git a/gst-libs/gst/play/play.c b/gst-libs/gst/play/play.c
index 7c7ef849..bcc5c4d1 100644
--- a/gst-libs/gst/play/play.c
+++ b/gst-libs/gst/play/play.c
@@ -928,7 +928,7 @@ gst_play_get_sink_element (GstPlay *play,
gboolean has_video_cap = FALSE;
gboolean has_audio_cap = FALSE;
- caps = gst_pad_get_caps (GST_PAD (pads->data));
+ caps = gst_pad_get_negotiated_caps (GST_PAD (pads->data));
structure = gst_caps_get_structure (caps, 0);
if (strcmp (gst_structure_get_name (structure),
diff --git a/gst-libs/gst/play/play.old.c b/gst-libs/gst/play/play.old.c
index 513a3e12..e8c2daf6 100644
--- a/gst-libs/gst/play/play.old.c
+++ b/gst-libs/gst/play/play.old.c
@@ -911,7 +911,7 @@ gst_play_get_sink_element (GstPlay * play,
const char *media_type;
media_type = gst_structure_get_name (gst_caps_get_structure (
- gst_pad_get_caps (GST_PAD (pads->data)), 0));
+ gst_pad_get_negotiated_caps (GST_PAD (pads->data)), 0));
if (strcmp (media_type, "audio/x-raw-int") == 0)
{
has_audio_cap = TRUE;