mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
glimagesink: critical error while seek playback-test(stop state)
If we seek when media is in stop state, playback-test gives critical error, since context of glimagesink is destroyed during stop. But since context is not present, we need not handle send_event in glimagesink Hence adding a condition to check if context is valid. https://bugzilla.gnome.org/show_bug.cgi?id=740305
This commit is contained in:
parent
d747c65d4c
commit
1716e8c481
1 changed files with 5 additions and 1 deletions
|
@ -198,10 +198,14 @@ gst_glimage_sink_navigation_send_event (GstNavigation * navigation, GstStructure
|
||||||
GstGLImageSink *sink = GST_GLIMAGE_SINK (navigation);
|
GstGLImageSink *sink = GST_GLIMAGE_SINK (navigation);
|
||||||
GstEvent *event = NULL;
|
GstEvent *event = NULL;
|
||||||
GstPad *pad = NULL;
|
GstPad *pad = NULL;
|
||||||
GstGLWindow *window = gst_gl_context_get_window (sink->context);
|
GstGLWindow *window;
|
||||||
guint width, height;
|
guint width, height;
|
||||||
gdouble x, y, xscale, yscale;
|
gdouble x, y, xscale, yscale;
|
||||||
|
|
||||||
|
if (!sink->context)
|
||||||
|
return;
|
||||||
|
|
||||||
|
window = gst_gl_context_get_window (sink->context);
|
||||||
g_return_if_fail (GST_GL_IS_WINDOW (window));
|
g_return_if_fail (GST_GL_IS_WINDOW (window));
|
||||||
|
|
||||||
width = GST_VIDEO_SINK_WIDTH (sink);
|
width = GST_VIDEO_SINK_WIDTH (sink);
|
||||||
|
|
Loading…
Reference in a new issue