From: Jan Alexander Steffens (heftig) Date: Wed, 20 Oct 2021 22:36:47 +0000 (+0200) Subject: interlace: Reset src_fps_d together with src_fps_n X-Git-Tag: 1.19.3~99 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=683680f6e5567bcdbc1ca17ff4c23ef8a2853674;p=platform%2Fupstream%2Fgstreamer.git interlace: Reset src_fps_d together with src_fps_n These fields belong together. Part-of: --- diff --git a/subprojects/gst-plugins-bad/gst/interlace/gstinterlace.c b/subprojects/gst-plugins-bad/gst/interlace/gstinterlace.c index 569a425..bc2c7cb 100644 --- a/subprojects/gst-plugins-bad/gst/interlace/gstinterlace.c +++ b/subprojects/gst-plugins-bad/gst/interlace/gstinterlace.c @@ -347,6 +347,7 @@ gst_interlace_init (GstInterlace * interlace) interlace->new_pattern = GST_INTERLACE_PATTERN_2_3; interlace->pattern_offset = 0; interlace->src_fps_n = 0; + interlace->src_fps_d = 1; g_mutex_init (&interlace->lock); gst_interlace_reset (interlace); } @@ -1524,6 +1525,7 @@ gst_interlace_change_state (GstElement * element, GstStateChange transition) case GST_STATE_CHANGE_PAUSED_TO_READY: g_mutex_lock (&interlace->lock); interlace->src_fps_n = 0; + interlace->src_fps_d = 1; g_mutex_unlock (&interlace->lock); gst_interlace_reset (interlace);