videotestsrc: Avoid overflow calculation
authorEdward Hervey <edward@centricular.com>
Tue, 21 Nov 2017 09:15:02 +0000 (10:15 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 21 Nov 2017 09:15:02 +0000 (10:15 +0100)
commita47881100d99fe388cbdcfc5b056e0871928f798
tree66f794872df3c53e4a79bc513512e9e68390703f
parentd33c407f6b4431bc741e84b0a3c2e5d03e8c1c53
videotestsrc: Avoid overflow calculation

n_frames could end up being quite big (potentially up to G_MAXINT64). Which
would result in overflowing 64bits when multiplying it by GST_SECOND.

Instead move GST_SECOND to the num argument
gst/videotestsrc/gstvideotestsrc.c