gl: Removed unreachable break, unused variable
https://bugzilla.gnome.org/show_bug.cgi?id=736957
This commit is contained in:
parent
0dbce9c6ab
commit
a45a5f0101
@ -272,10 +272,9 @@ gst_gl_mixer_sink_query (GstAggregator * agg, GstAggregatorPad * bpad,
|
|||||||
case GST_QUERY_ALLOCATION:
|
case GST_QUERY_ALLOCATION:
|
||||||
{
|
{
|
||||||
GstQuery *decide_query = NULL;
|
GstQuery *decide_query = NULL;
|
||||||
gboolean negotiated;
|
|
||||||
|
|
||||||
GST_OBJECT_LOCK (mix);
|
GST_OBJECT_LOCK (mix);
|
||||||
if (G_UNLIKELY (!(negotiated = mix->priv->negotiated))) {
|
if (G_UNLIKELY (!mix->priv->negotiated)) {
|
||||||
GST_DEBUG_OBJECT (mix,
|
GST_DEBUG_OBJECT (mix,
|
||||||
"not negotiated yet, can't answer ALLOCATION query");
|
"not negotiated yet, can't answer ALLOCATION query");
|
||||||
GST_OBJECT_UNLOCK (mix);
|
GST_OBJECT_UNLOCK (mix);
|
||||||
@ -624,7 +623,7 @@ gst_gl_mixer_decide_allocation (GstGLMixer * mix, GstQuery * query)
|
|||||||
G_TYPE_POINTER, &handle, "gst.gl.context.type", G_TYPE_STRING,
|
G_TYPE_POINTER, &handle, "gst.gl.context.type", G_TYPE_STRING,
|
||||||
&type, "gst.gl.context.apis", G_TYPE_STRING, &apis, NULL)
|
&type, "gst.gl.context.apis", G_TYPE_STRING, &apis, NULL)
|
||||||
&& handle) {
|
&& handle) {
|
||||||
GstGLPlatform platform = GST_GL_PLATFORM_NONE;
|
GstGLPlatform platform;
|
||||||
GstGLAPI gl_apis;
|
GstGLAPI gl_apis;
|
||||||
|
|
||||||
GST_DEBUG ("got GL context handle 0x%p with type %s and apis %s",
|
GST_DEBUG ("got GL context handle 0x%p with type %s and apis %s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user