changeset 36529:1dbe3aa368ba

rawdv: remove pointless casts.
author reimar
date Sun, 19 Jan 2014 11:13:02 +0000
parents 0dca7cd2b32b
children 9b0dae1bf6ea
files libmpdemux/demux_rawdv.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_rawdv.c	Sun Jan 19 11:13:01 2014 +0000
+++ b/libmpdemux/demux_rawdv.c	Sun Jan 19 11:13:02 2014 +0000
@@ -50,7 +50,7 @@
 
 static void demux_seek_rawdv(demuxer_t *demuxer,float rel_seek_secs,float audio_delay,int flags)
 {
-   rawdv_frames_t *frames = (rawdv_frames_t *)demuxer->priv;
+   rawdv_frames_t *frames = demuxer->priv;
    sh_video_t *sh_video = demuxer->video->sh;
    off_t newpos=(flags&SEEK_ABSOLUTE)?0:frames->current_frame;
    if(flags&SEEK_FACTOR)
@@ -109,7 +109,7 @@
 //     1 = successfully read a packet
 static int demux_rawdv_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds)
 {
-   rawdv_frames_t *frames = (rawdv_frames_t *)demuxer->priv;
+   rawdv_frames_t *frames = demuxer->priv;
    demux_packet_t* dp_video=NULL;
    sh_video_t *sh_video = demuxer->video->sh;
    int bytes_read=0;
@@ -237,7 +237,7 @@
 
 static void demux_close_rawdv(demuxer_t* demuxer)
 {
-   rawdv_frames_t *frames = (rawdv_frames_t *)demuxer->priv;
+   rawdv_frames_t *frames = demuxer->priv;
 
    if(frames==0)
       return;
@@ -245,7 +245,7 @@
 }
 
 static int demux_rawdv_control(demuxer_t *demuxer,int cmd, void *arg) {
-    rawdv_frames_t *frames = (rawdv_frames_t *)demuxer->priv;
+    rawdv_frames_t *frames = demuxer->priv;
     sh_video_t *sh_video=demuxer->video->sh;
 
     switch(cmd) {