Explaining Gstreamer plugin example

horai ivo.hora at seznam.cz
Wed Oct 16 08:49:24 UTC 2019


Seriously,

when running running official gst-plugin-bad wayland example with mouse
button click signal hander attached to videoarea the following code written
way, the video runs but upon button click on video the signal is not
triggered, whey I don't set the pipeline to PLAYING state that means no
video is rendered, the signal triggers properly:

d->video_widget = GTK_WIDGET (gtk_builder_get_object (builder,
"videoarea"));
  g_signal_connect (d->video_widget, "draw",
      G_CALLBACK (video_widget_draw_cb), d);
    g_signal_connect(G_OBJECT(d->video_widget), "button_press_event",
button_press_event, d);

....
static void button_press_event(GtkWidget *widget, GdkEventButton *event,
DemoApp * d) {
	g_print("button Pressed ...\r\n");
}

Please, could anyone more skilled verify this and possibly claim problem on
my side or on waylandsink side?

Thank you






--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list