From 6980503927eeeb731043c2098fb8eacf2c8efcff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 8 Nov 2009 15:04:53 +0100 Subject: [PATCH] subtitleoverlay: Use gst_pad_get_caps_reffed() --- gst/playback/gstsubtitleoverlay.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/playback/gstsubtitleoverlay.c b/gst/playback/gstsubtitleoverlay.c index 3ea8a3377a..3ddfee9e8f 100644 --- a/gst/playback/gstsubtitleoverlay.c +++ b/gst/playback/gstsubtitleoverlay.c @@ -648,7 +648,7 @@ _pad_blocked_cb (GstPad * pad, gboolean blocked, gpointer user_data) if (peer) { subcaps = gst_pad_get_negotiated_caps (peer); if (!subcaps) { - subcaps = gst_pad_get_caps (peer); + subcaps = gst_pad_get_caps_reffed (peer); if (!gst_caps_is_fixed (subcaps)) { gst_caps_unref (subcaps); subcaps = NULL; @@ -785,7 +785,7 @@ _pad_blocked_cb (GstPad * pad, gboolean blocked, gpointer user_data) video_caps = gst_pad_get_negotiated_caps (video_peer); if (!video_caps) { - video_caps = gst_pad_get_caps (video_peer); + video_caps = gst_pad_get_caps_reffed (video_peer); if (!gst_caps_is_fixed (video_caps)) { gst_caps_unref (video_caps); video_caps = NULL; @@ -1598,7 +1598,7 @@ gst_subtitle_overlay_subtitle_sink_link (GstPad * pad, GstPad * peer) caps = gst_pad_get_negotiated_caps (peer); if (!caps) { - caps = gst_pad_get_caps (peer); + caps = gst_pad_get_caps_reffed (peer); if (!gst_caps_is_fixed (caps)) { gst_caps_unref (caps); caps = NULL;