mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
videoencoder: Make sure to return TRUE if the same caps are set again
This commit is contained in:
parent
0715e73725
commit
b0e4b5f69a
2 changed files with 2 additions and 2 deletions
|
@ -3038,7 +3038,6 @@ gst_video_decoder_negotiate_default (GstVideoDecoder * decoder)
|
|||
events = &decoder->priv->current_frame_events;
|
||||
}
|
||||
|
||||
ret = FALSE;
|
||||
for (l = g_list_last (*events); l;) {
|
||||
GstEvent *event = GST_EVENT (l->data);
|
||||
GList *tmp;
|
||||
|
|
|
@ -1492,7 +1492,6 @@ gst_video_encoder_negotiate_default (GstVideoEncoder * encoder)
|
|||
events = &encoder->priv->current_frame_events;
|
||||
}
|
||||
|
||||
ret = FALSE;
|
||||
for (l = g_list_last (*events); l;) {
|
||||
GstEvent *event = GST_EVENT (l->data);
|
||||
GList *tmp;
|
||||
|
@ -1511,6 +1510,8 @@ gst_video_encoder_negotiate_default (GstVideoEncoder * encoder)
|
|||
prevcaps = gst_pad_get_current_caps (encoder->srcpad);
|
||||
if (!prevcaps || !gst_caps_is_equal (prevcaps, state->caps))
|
||||
ret = gst_pad_set_caps (encoder->srcpad, state->caps);
|
||||
else
|
||||
ret = TRUE;
|
||||
if (prevcaps)
|
||||
gst_caps_unref (prevcaps);
|
||||
|
||||
|
|
Loading…
Reference in a new issue