Refreshing video after a zoom/unzoom like process using GTK
Sebastian Dröge
sebastian at centricular.com
Sun Mar 6 08:00:51 UTC 2016
On Sa, 2016-03-05 at 18:47 -0700, Jack Dickerson wrote:
> Greetings,
>
> I have taken the tutorial sample
> https://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/tree/gst-sdk/tu
> torials/basic-tutorial-5.c
> and modified it by packing two videos in the horizontal box. I
> actually started with four videos, but I get the same problem with
> two.
> Both videos play great with play/pause/stop buttons and a seek bar.I
> also added a zoom and unzoom function.
> For the zoom, I remove one of the videos from the horizontal box and
> the other video fills the main box.
> When I unzoom, I pack the previously removed video back in the box.
> The problem is the newly repacked video does not appear
> unless I stop and restart the videos from the beginning or if I
> slightly modify the entire box by grabbing a corner or side and
> adjust the size of the box.
>
> Is there any way to get that video to display after I have repacked
> it without the methods I've described?
The problem might be that the native X11 window is changing here, not
entirely sure. That would at least explain why restarting makes things
work again.
A possible solution for you would be to use gtksink or gtkglsink. These
provide you directly a GTK widget that you can put into your UI and
should be robust for these things.
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160306/620f5edf/attachment.sig>
More information about the gstreamer-devel
mailing list