diff options
Diffstat (limited to 'libvo/vo_ivtv.c')
-rw-r--r-- | libvo/vo_ivtv.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/libvo/vo_ivtv.c b/libvo/vo_ivtv.c index 7dd9279f38..e62308722a 100644 --- a/libvo/vo_ivtv.c +++ b/libvo/vo_ivtv.c @@ -65,7 +65,7 @@ static const opt_t subopts[] = { {NULL} }; -static const vo_info_t info = +static const vo_info_t info = { "IVTV MPEG Video Decoder TV-Out", "ivtv", @@ -86,17 +86,17 @@ ivtv_reset (int blank_screen) if (blank_screen) flags |= IVTV_STOP_FL_HIDE_FRAME; sd.flags = flags; - + if (ioctl (ivtv_fd, IVTV_IOC_STOP_DECODE, &sd) < 0) { mp_msg (MSGT_VO, MSGL_ERR, "IVTV_IOC_STOP_DECODE: %s\n", strerror (errno)); return 1; } - + sd1.gop_offset = 0; sd1.muted_audio_frames = 0; - + if (ioctl (ivtv_fd, IVTV_IOC_START_DECODE, &sd1) < 0) { mp_msg (MSGT_VO, MSGL_ERR, @@ -112,7 +112,7 @@ ivtv_write (unsigned char *data, int len) { if (ivtv_fd < 0) return 0; - + return write (ivtv_fd, data, len); } @@ -145,13 +145,13 @@ preinit (const char *arg) "\n" ); return -1; } - + if (!device) - device = strdup (DEFAULT_MPEG_DECODER); - + device = strdup (DEFAULT_MPEG_DECODER); + ivtv_fd = open (device, O_RDWR); if (ivtv_fd < 0) - { + { free (device); mp_msg (MSGT_VO, MSGL_FATAL, "%s %s\n", IVTV_VO_HDR, strerror (errno)); return -1; @@ -212,7 +212,7 @@ preinit (const char *arg) "%s can't get output (%s).\n", IVTV_VO_HDR, strerror (errno)); return -1; } - + /* clear output */ ivtv_reset (1); @@ -280,7 +280,7 @@ query_format (uint32_t format) { if (format != IMGFMT_MPEGPES) return 0; - + return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_TIMER; } @@ -289,16 +289,16 @@ control (uint32_t request, void *data, ...) { switch (request) { - case VOCTRL_PAUSE: - case VOCTRL_RESUME: + case VOCTRL_PAUSE: + case VOCTRL_RESUME: return ivtv_reset (0); - case VOCTRL_RESET: + case VOCTRL_RESET: return ivtv_reset (1); case VOCTRL_QUERY_FORMAT: return query_format (*((uint32_t*) data)); } - + return VO_NOTIMPL; } |