how to drop(discard) late frames or buffer of inactive pad in the input-selector

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

how to drop(discard) late frames or buffer of inactive pad in the input-selector

LeeJungchan
This post was updated on .
Hi. Everyone.

First, sorry my poor english.

I'm trying video switch.

gst-launch-1.0 videotestsrc pattern=0 is-live=1 do-timestamp=1 ! video/x-raw, width=320, height=240, framerate=\(fraction\)15/1 ! queue ! switch. videotestsrc pattern=1 is-live=1 do-timestamp=1 ! video/x-raw, width=320, height=240, framerate=\(fraction\)15/1 ! queue ! input-selector name=switch ! fakesink

It is work fine..

The input-selector flushes many buffers that were delayed when the active pad was changed.

But, I want to discard all data coming into the non activate pad.

how can i do.. please let me know.

thanks.