mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
video: init video info to some sensible defaults
This commit is contained in:
parent
376164ab08
commit
40aad050e2
1 changed files with 5 additions and 0 deletions
|
@ -572,6 +572,11 @@ gst_video_info_init (GstVideoInfo * info)
|
||||||
g_return_if_fail (info != NULL);
|
g_return_if_fail (info != NULL);
|
||||||
|
|
||||||
memset (info, 0, sizeof (GstVideoInfo));
|
memset (info, 0, sizeof (GstVideoInfo));
|
||||||
|
/* arrange for sensible defaults, e.g. if turned into caps */
|
||||||
|
info->fps_n = 0;
|
||||||
|
info->fps_d = 1;
|
||||||
|
info->par_n = 1;
|
||||||
|
info->par_d = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue