mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 13:08:49 +00:00
omxvideodec: Don't abort if the color format is not supported but give a useful error message
This commit is contained in:
parent
714ba59b11
commit
febc2d99cb
1 changed files with 3 additions and 1 deletions
|
@ -608,7 +608,9 @@ gst_omx_video_dec_loop (GstOMXVideoDec * self)
|
||||||
state->format = GST_VIDEO_FORMAT_NV12;
|
state->format = GST_VIDEO_FORMAT_NV12;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached ();
|
GST_ERROR_OBJECT (self, "Unsupported color format: %d",
|
||||||
|
port_def.format.video.eColorFormat);
|
||||||
|
goto caps_failed;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue