interlace: Reset src_fps_d together with src_fps_n

These fields belong together.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1039>
This commit is contained in:
Jan Alexander Steffens (heftig) 2021-10-21 00:36:47 +02:00 committed by GStreamer Marge Bot
parent 342763a158
commit 683680f6e5

View file

@ -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);