[Merge] lp:~phablet-team/media-hub/gst-1.5 into lp:media-hub

Alfonso Sanchez-Beato alfonso.sanchez-beato at canonical.com
Wed Jul 22 06:28:33 UTC 2015


See comment below.

Diff comments:

> 
> === modified file 'src/core/media/gstreamer/playbin.cpp'
> --- src/core/media/gstreamer/playbin.cpp	2015-06-01 21:34:46 +0000
> +++ src/core/media/gstreamer/playbin.cpp	2015-07-21 16:26:24 +0000
> @@ -28,15 +28,22 @@
>  
>  namespace
>  {
> -void setup_video_sink_for_buffer_streaming(GstElement* video_sink)
> +void setup_video_sink_for_buffer_streaming(GstElement* pipeline)
>  {
>      // Get the service-side BufferQueue (IGraphicBufferProducer) and associate it with
>      // the SurfaceTextureClientHybris instance
>      IGBPWrapperHybris igbp = decoding_service_get_igraphicbufferproducer();
>      SurfaceTextureClientHybris stc = surface_texture_client_create_by_igbp(igbp);
> +
>      // Because mirsink is being loaded, we are definitely doing * hardware rendering.
> -    surface_texture_client_set_hardware_rendering (stc, TRUE);
> -    g_object_set (G_OBJECT (video_sink), "surface", static_cast<gpointer>(stc), static_cast<char*>(NULL));
> +    surface_texture_client_set_hardware_rendering(stc, TRUE);
> +
> +    GstContext *context = gst_context_new("gst.mir.MirContext", TRUE);

That will be the ideal, but that include file is not included in package libgstreamer-plugins-bad1.0-dev. So we would need to do that in plugins-bad, and also include it as build dependency in media-hub. Not saying that we should not do it, but I do not know if it is worth the effort atm. Note also that we are using g_object_set with literal strings all around in this file (and previously g_object_set(..., "surface",...)).

> +    GstStructure *structure = gst_context_writable_structure(context);
> +    gst_structure_set(structure, "gst_mir_context", G_TYPE_POINTER, stc, NULL);
> +
> +    /* Propagate context in pipeline (needed by amchybris and mirsink) */
> +    gst_element_set_context(pipeline, context);
>  }
>  }
>  #else  // MEDIA_HUB_HAVE_HYBRIS_MEDIA_COMPAT_LAYER


-- 
https://code.launchpad.net/~phablet-team/media-hub/gst-1.5/+merge/265413
Your team Ubuntu Phablet Team is subscribed to branch lp:~phablet-team/media-hub/fix-black-video-bugs.



More information about the Ubuntu-reviews mailing list