... but when we cast cmResultSuccess to a gboolean it will be FALSE, and make
GstVideoDecoder::stop() fail for no reason.
gst_openh264dec_stop (GstVideoDecoder * decoder)
{
GstOpenh264Dec *openh264dec = GST_OPENH264DEC (decoder);
- gint ret = TRUE;
if (openh264dec->priv->decoder) {
- ret = openh264dec->priv->decoder->Uninitialize ();
+ openh264dec->priv->decoder->Uninitialize ();
WelsDestroyDecoder (openh264dec->priv->decoder);
openh264dec->priv->decoder = NULL;
}
}
openh264dec->priv->width = openh264dec->priv->height = 0;
- return ret;
+ return TRUE;
}
static gboolean