From 87f51c6755319091275284cda9d021dc86d22489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Fri, 12 Apr 2024 20:22:48 +0200 Subject: [PATCH] clapper: Also update decoders after preroll Sometimes decoders might not be active yet until media starts playing, to fix that being racy also try to update them after preroll --- src/lib/clapper/clapper-playbin-bus.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/clapper/clapper-playbin-bus.c b/src/lib/clapper/clapper-playbin-bus.c index 7243c596..42e413e1 100644 --- a/src/lib/clapper/clapper-playbin-bus.c +++ b/src/lib/clapper/clapper-playbin-bus.c @@ -613,6 +613,9 @@ _handle_state_changed_msg (GstMessage *msg, ClapperPlayer *player) } _update_current_duration (player); + + if (!player->use_playbin3) + clapper_player_playbin_update_current_decoders (player); } }