mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
snapshot: use a keyframe seek
One would usualy get good quality snapshots quickly. The exact seek position does not really matter.
This commit is contained in:
parent
5075b891aa
commit
f6dad2e868
1 changed files with 2 additions and 2 deletions
|
@ -99,8 +99,8 @@ main (int argc, char *argv[])
|
||||||
* by seeking to somewhere else we have a bigger chance of getting something
|
* by seeking to somewhere else we have a bigger chance of getting something
|
||||||
* more interesting. An optimisation would be to detect black images and then
|
* more interesting. An optimisation would be to detect black images and then
|
||||||
* seek a little more */
|
* seek a little more */
|
||||||
gst_element_seek_simple (pipeline, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH,
|
gst_element_seek_simple (pipeline, GST_FORMAT_TIME,
|
||||||
position);
|
GST_SEEK_FLAG_KEY_UNIT | GST_SEEK_FLAG_FLUSH, position);
|
||||||
|
|
||||||
/* get the preroll buffer from appsink, this block untils appsink really
|
/* get the preroll buffer from appsink, this block untils appsink really
|
||||||
* prerolls */
|
* prerolls */
|
||||||
|
|
Loading…
Reference in a new issue