Skip to content

Commit

Permalink
Fix vf_tcdump's compilation
Browse files Browse the repository at this point in the history
It broke when help_mp.h was removed. No translation support was added
to it though.
  • Loading branch information
Kovensky committed Mar 30, 2010
1 parent 791c823 commit c4132cc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libmpcodecs/vf_tcdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@

#include "config.h"
#include "mp_msg.h"
#include "help_mp.h"

#include "img_format.h"
#include "mp_image.h"
#include "vf.h"


struct vf_priv_s {
char *tcv2filename;
FILE *tcv2file;
Expand Down Expand Up @@ -48,13 +46,13 @@ static int put_image(struct vf_instance* vf, mp_image_t *mpi, double pts){
if (pts == MP_NOPTS_VALUE) {
if (!priv->noptswarn) {
priv->noptswarn = 1;
mp_msg(MSGT_VFILTER, MSGL_WARN, MSGTR_MPCODECS_TCDumpNoPTS);
mp_msg(MSGT_VFILTER, MSGL_WARN, "Stream contains frames with no PTS, timecode file not valid (if already written)\n");
}
} else {
if (!priv->tcv2file && priv->tcv2filename) {
priv->tcv2file = fopen(priv->tcv2filename,"w");
if (!priv->tcv2file) {
mp_msg(MSGT_VFILTER, MSGL_WARN, MSGTR_MPCODECS_TCDumpOpenFail,
mp_msg(MSGT_VFILTER, MSGL_WARN, "Unable to open timecode file: %s\n",
strerror(errno));
free(priv->tcv2filename);
priv->tcv2filename = NULL;
Expand Down

0 comments on commit c4132cc

Please sign in to comment.