use fakesink led to segment fault(andriodmedia) on android

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

use fakesink led to segment fault(andriodmedia) on android

rland
Hi,I use 1.82.
Today, I tried to set playbin's  video_sink to fakesink when I debug someting,
unfortunately,Because self->surface==NULL,leads to a segment fault.

In  gstamcvideodec.c
---------------------------------------
         ->gst_amc_video_dec_set_format()
            if (!gst_amc_native_codec_configure (self->codec, format, self->surface, 0,
          &err)) {
    GST_ERROR_OBJECT (self, "Failed to congst_amc_video_dec_set_src_caps return nullfigure codec");
    GST_ELEMENT_ERROR_FROM_ERROR (self, err);
    return FALSE;
  }
----------------------------------------
Though it's not a big problem,
But  in PC platform other decoder theoretically are compatible with fakesink,I think it should be missing a test case,
so this  problem should be considered as a bug ?