GNOME Bugzilla – Bug 788545
flvmux: Condition always false in function mux_pcm_audio
Last modified: 2017-10-05 10:09:15 UTC
In File : flvmux.c Function : static void mux_pcm_audio (guint num_buffers, guint repeat) Line No. 137 Statement Line No. 137 fail_unless (counter > 2); is always false due to Line No. 114 counter = 0; Solution : Line No. 114 counter = 0; should be removed.
Patch please.
Created attachment 360956 [details] [review] patch to fix : flvmux: Condition always false in function mux_pcm_audio Please review the patch attached to fix the issue and share the feedback.
I think you will find that this unit test passes just fine and that the counter is actually >2 there, if you add some printf. There is a g_signal_connect (sink, "handoff", G_CALLBACK (handoff_cb), &counter); outside the loop, but the handoff callback will only be triggered from inside the loop when the pipeline is started.