diff options
author | Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com> | 2009-06-08 14:15:03 +0200 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-06-20 15:21:46 +0100 |
commit | aff91bb89acaa2528ad2ed8f696cc93eb254325a (patch) | |
tree | 5f5c696ba9ffb074d3f12c2950a39c123bc51355 /sys | |
parent | cee2394a0d60857ff0015a62bb8888ec18e40755 (diff) | |
download | gst-plugins-bad-aff91bb89acaa2528ad2ed8f696cc93eb254325a.tar.gz gst-plugins-bad-aff91bb89acaa2528ad2ed8f696cc93eb254325a.tar.bz2 gst-plugins-bad-aff91bb89acaa2528ad2ed8f696cc93eb254325a.zip |
vdpaumpegdec: small cleanup
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vdpau/gstvdpmpegdec.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/vdpau/gstvdpmpegdec.c b/sys/vdpau/gstvdpmpegdec.c index 931de5a4..fbd53ae9 100644 --- a/sys/vdpau/gstvdpmpegdec.c +++ b/sys/vdpau/gstvdpmpegdec.c @@ -804,7 +804,7 @@ static gboolean normal_seek (GstVdpMpegDec * mpeg_dec, GstEvent * event) { gdouble rate; - GstFormat format, conv; + GstFormat format; GstSeekFlags flags; GstSeekType cur_type, stop_type; gint64 time_cur, bytes_cur; @@ -826,12 +826,11 @@ normal_seek (GstVdpMpegDec * mpeg_dec, GstEvent * event) if (update) { /* seek on bytes */ - conv = GST_FORMAT_BYTES; if (!gst_vdp_mpeg_dec_convert (mpeg_dec, GST_FORMAT_TIME, time_cur, - conv, &bytes_cur)) + GST_FORMAT_BYTES, &bytes_cur)) goto convert_failed; if (!gst_vdp_mpeg_dec_convert (mpeg_dec, GST_FORMAT_TIME, time_stop, - conv, &bytes_stop)) + GST_FORMAT_BYTES, &bytes_stop)) goto convert_failed; /* conversion succeeded, create the seek */ |