mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
xvimagesink: handle unknown formats
This commit is contained in:
parent
646ffd0dad
commit
1a5d88b68c
1 changed files with 4 additions and 0 deletions
|
@ -1056,6 +1056,8 @@ gst_xvimagesink_get_xv_support (GstXvImageSink * xvimagesink,
|
|||
|
||||
vformat = gst_video_format_from_masks (fmt->depth, fmt->bits_per_pixel,
|
||||
endianness, fmt->red_mask, fmt->green_mask, fmt->blue_mask, 0);
|
||||
if (vformat == GST_VIDEO_FORMAT_UNKNOWN)
|
||||
break;
|
||||
|
||||
format_caps = gst_caps_new_simple ("video/x-raw",
|
||||
"format", G_TYPE_STRING, gst_video_format_to_string (vformat),
|
||||
|
@ -1071,6 +1073,8 @@ gst_xvimagesink_get_xv_support (GstXvImageSink * xvimagesink,
|
|||
GstVideoFormat vformat;
|
||||
|
||||
vformat = gst_video_format_from_fourcc (formats[i].id);
|
||||
if (vformat == GST_VIDEO_FORMAT_UNKNOWN)
|
||||
break;
|
||||
|
||||
format_caps = gst_caps_new_simple ("video/x-raw",
|
||||
"format", G_TYPE_STRING, gst_video_format_to_string (vformat),
|
||||
|
|
Loading…
Reference in a new issue