subtitleoverlay: Use gst_pad_get_caps_reffed()

This commit is contained in:
Sebastian Dröge 2009-11-08 15:04:53 +01:00
parent b02d9837f7
commit 6980503927

View file

@ -648,7 +648,7 @@ _pad_blocked_cb (GstPad * pad, gboolean blocked, gpointer user_data)
if (peer) { if (peer) {
subcaps = gst_pad_get_negotiated_caps (peer); subcaps = gst_pad_get_negotiated_caps (peer);
if (!subcaps) { if (!subcaps) {
subcaps = gst_pad_get_caps (peer); subcaps = gst_pad_get_caps_reffed (peer);
if (!gst_caps_is_fixed (subcaps)) { if (!gst_caps_is_fixed (subcaps)) {
gst_caps_unref (subcaps); gst_caps_unref (subcaps);
subcaps = NULL; 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); video_caps = gst_pad_get_negotiated_caps (video_peer);
if (!video_caps) { 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)) { if (!gst_caps_is_fixed (video_caps)) {
gst_caps_unref (video_caps); gst_caps_unref (video_caps);
video_caps = NULL; video_caps = NULL;
@ -1598,7 +1598,7 @@ gst_subtitle_overlay_subtitle_sink_link (GstPad * pad, GstPad * peer)
caps = gst_pad_get_negotiated_caps (peer); caps = gst_pad_get_negotiated_caps (peer);
if (!caps) { if (!caps) {
caps = gst_pad_get_caps (peer); caps = gst_pad_get_caps_reffed (peer);
if (!gst_caps_is_fixed (caps)) { if (!gst_caps_is_fixed (caps)) {
gst_caps_unref (caps); gst_caps_unref (caps);
caps = NULL; caps = NULL;