So I am trying to create an application based on GStreamer + GTK to scan QR code. My pipeline is like this:
+--[ queue ] -- [ glsinkbin sink=gtkglsink] / V4l2Src ------ [ tee ] + \ +--[ queue ] -- [ videoconvert ] -- [ video/x-raw,format=GRAY8 ] -- [ appsink ]
The UI is like this:
So, it has Play/Pause button, so that, after one detection is made, I can try another one.
The problem is that:
- In daytime, with enough light, after I click Pause, I click Play, the video still freezes.
- In night time, when room lights are off, when I click Pause, the video still plays.
I guess there are somethings with the multi-thread nature of GStreamer, but cannot figure out where and how to fix.
Could someone help?