mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
playbin: Fix some warnings with clang around multiview enums
There is the GstVideoMultiviewMode enum and the GstVideoMultiviewFramePacking, which is a subset of the multiview modes, with the same values as the corresponding types from the full enum. Do some casts and use the right times to avoid implicitly using/passing GstVideoMultiviewFramePacking when a GstVideoMultiviewMode is needed.
This commit is contained in:
parent
e57754be9b
commit
ca864ce46e
1 changed files with 4 additions and 4 deletions
|
@ -3078,7 +3078,7 @@ notify:
|
|||
static GstCaps *
|
||||
update_video_multiview_caps (GstPlayBin * playbin, GstCaps * caps)
|
||||
{
|
||||
GstVideoMultiviewFramePacking mv_mode;
|
||||
GstVideoMultiviewMode mv_mode;
|
||||
GstVideoMultiviewMode cur_mv_mode;
|
||||
GstVideoMultiviewFlags mv_flags, cur_mv_flags;
|
||||
GstStructure *s;
|
||||
|
@ -3086,14 +3086,14 @@ update_video_multiview_caps (GstPlayBin * playbin, GstCaps * caps)
|
|||
GstCaps *out_caps;
|
||||
|
||||
GST_OBJECT_LOCK (playbin);
|
||||
mv_mode = playbin->multiview_mode;
|
||||
mv_mode = (GstVideoMultiviewMode) playbin->multiview_mode;
|
||||
mv_flags = playbin->multiview_flags;
|
||||
GST_OBJECT_UNLOCK (playbin);
|
||||
|
||||
if (mv_mode == GST_VIDEO_MULTIVIEW_FRAME_PACKING_NONE)
|
||||
if (mv_mode == GST_VIDEO_MULTIVIEW_MODE_NONE)
|
||||
return NULL;
|
||||
|
||||
cur_mv_mode = GST_VIDEO_MULTIVIEW_FRAME_PACKING_NONE;
|
||||
cur_mv_mode = GST_VIDEO_MULTIVIEW_MODE_NONE;
|
||||
cur_mv_flags = GST_VIDEO_MULTIVIEW_FLAGS_NONE;
|
||||
|
||||
s = gst_caps_get_structure (caps, 0);
|
||||
|
|
Loading…
Reference in a new issue