mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
subtitleoverlay: Use gst_pad_get_caps_reffed()
This commit is contained in:
parent
b02d9837f7
commit
6980503927
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue