From 683680f6e5567bcdbc1ca17ff4c23ef8a2853674 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Thu, 21 Oct 2021 00:36:47 +0200 Subject: [PATCH] interlace: Reset src_fps_d together with src_fps_n These fields belong together. Part-of: --- subprojects/gst-plugins-bad/gst/interlace/gstinterlace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst/interlace/gstinterlace.c b/subprojects/gst-plugins-bad/gst/interlace/gstinterlace.c index 569a4251f3..bc2c7cbcf4 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);