mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 09:08:14 +00:00
vdpaumpegdec: small cleanup
This commit is contained in:
parent
cee2394a0d
commit
aff91bb89a
1 changed files with 3 additions and 4 deletions
|
@ -804,7 +804,7 @@ static gboolean
|
||||||
normal_seek (GstVdpMpegDec * mpeg_dec, GstEvent * event)
|
normal_seek (GstVdpMpegDec * mpeg_dec, GstEvent * event)
|
||||||
{
|
{
|
||||||
gdouble rate;
|
gdouble rate;
|
||||||
GstFormat format, conv;
|
GstFormat format;
|
||||||
GstSeekFlags flags;
|
GstSeekFlags flags;
|
||||||
GstSeekType cur_type, stop_type;
|
GstSeekType cur_type, stop_type;
|
||||||
gint64 time_cur, bytes_cur;
|
gint64 time_cur, bytes_cur;
|
||||||
|
@ -826,12 +826,11 @@ normal_seek (GstVdpMpegDec * mpeg_dec, GstEvent * event)
|
||||||
|
|
||||||
if (update) {
|
if (update) {
|
||||||
/* seek on bytes */
|
/* seek on bytes */
|
||||||
conv = GST_FORMAT_BYTES;
|
|
||||||
if (!gst_vdp_mpeg_dec_convert (mpeg_dec, GST_FORMAT_TIME, time_cur,
|
if (!gst_vdp_mpeg_dec_convert (mpeg_dec, GST_FORMAT_TIME, time_cur,
|
||||||
conv, &bytes_cur))
|
GST_FORMAT_BYTES, &bytes_cur))
|
||||||
goto convert_failed;
|
goto convert_failed;
|
||||||
if (!gst_vdp_mpeg_dec_convert (mpeg_dec, GST_FORMAT_TIME, time_stop,
|
if (!gst_vdp_mpeg_dec_convert (mpeg_dec, GST_FORMAT_TIME, time_stop,
|
||||||
conv, &bytes_stop))
|
GST_FORMAT_BYTES, &bytes_stop))
|
||||||
goto convert_failed;
|
goto convert_failed;
|
||||||
|
|
||||||
/* conversion succeeded, create the seek */
|
/* conversion succeeded, create the seek */
|
||||||
|
|
Loading…
Reference in a new issue