summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-24 05:31:33 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-25 03:31:57 +0300
commit6f971b635434609e69d7c326b1f3eded88d2caf2 (patch)
treef372d983e624842d98002b25bd7f837a47f49f69
parente5b3655e90bdd86809f532590dc8e0277093daad (diff)
downloadmpv-6f971b635434609e69d7c326b1f3eded88d2caf2.tar.bz2
mpv-6f971b635434609e69d7c326b1f3eded88d2caf2.tar.xz
dec_video.c: A couple of cosmetic changes
-rw-r--r--libmpcodecs/dec_video.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/libmpcodecs/dec_video.c b/libmpcodecs/dec_video.c
index 8306aa6169..667504c773 100644
--- a/libmpcodecs/dec_video.c
+++ b/libmpcodecs/dec_video.c
@@ -1,4 +1,3 @@
-
#include "config.h"
#include "options.h"
@@ -63,7 +62,6 @@ int get_video_quality_max(sh_video_t *sh_video)
return ret;
}
}
-// mp_msg(MSGT_DECVIDEO,MSGL_INFO,"[PP] Sorry, postprocessing is not available\n");
return 0;
}
@@ -94,11 +92,10 @@ int set_video_colors(sh_video_t *sh_video, const char *item, int value)
return (1);
}
/* try software control */
- if (mpvdec)
- if (mpvdec->
- control(sh_video, VDCTRL_SET_EQUALIZER, item, (int *) value)
+ if (mpvdec &&
+ mpvdec->control(sh_video, VDCTRL_SET_EQUALIZER, item, (int *) value)
== CONTROL_OK)
- return 1;
+ return 1;
mp_msg(MSGT_DECVIDEO, MSGL_V, MSGTR_VideoAttributeNotSupportedByVO_VD,
item);
return 0;
@@ -222,10 +219,8 @@ static int init_video(sh_video_t *sh_video, char *codecname, char *vfm,
stringset_add(selected, sh_video->codec->name); // tagging it
// ok, it matches all rules, let's find the driver!
for (i = 0; mpcodecs_vd_drivers[i] != NULL; i++)
-// if(mpcodecs_vd_drivers[i]->info->id==sh_video->codec->driver) break;
- if (!strcmp
- (mpcodecs_vd_drivers[i]->info->short_name,
- sh_video->codec->drv))
+ if (!strcmp(mpcodecs_vd_drivers[i]->info->short_name,
+ sh_video->codec->drv))
break;
mpvdec = mpcodecs_vd_drivers[i];
#ifdef DYNAMIC_PLUGINS
@@ -312,10 +307,10 @@ int init_best_video_codec(sh_video_t *sh_video, char **video_codec_list,
{
char *vc_l_default[2] = { "", (char *) NULL };
stringset_t selected;
-// hack:
+ // hack:
if (!video_codec_list)
video_codec_list = vc_l_default;
-// Go through the codec.conf and find the best codec...
+ // Go through the codec.conf and find the best codec...
sh_video->initialized = 0;
stringset_init(&selected);
while (!sh_video->initialized && *video_codec_list) {