~ubuntu-branches/ubuntu/trusty/mkvtoolnix/trusty

« back to all changes in this revision

Viewing changes to src/extract/xtr_avi.cpp

  • Committer: Package Import Robot
  • Author(s): Christian Marillat
  • Date: 2013-01-21 09:04:27 UTC
  • mfrom: (1.1.18) (4.2.26 sid)
  • Revision ID: package-import@ubuntu.com-20130121090427-5c9d0gyf2807ju9d
Tags: 6.0.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#include "common/endian.h"
17
17
#include "common/hacks.h"
18
18
#include "common/math.h"
 
19
#include "common/mm_io_x.h"
19
20
#include "extract/xtr_avi.h"
20
21
 
21
22
xtr_avi_c::xtr_avi_c(const std::string &codec_id,
51
52
  try {
52
53
    m_out = mm_file_io_c::open(m_file_name.c_str(), MODE_CREATE);
53
54
    m_avi = AVI_open_output_file(m_out.get());
54
 
  } catch (mtx::mm_io::exception &) {
 
55
  } catch (mtx::mm_io::exception &ex) {
 
56
    mxerror(boost::format(Y("The file '%1%' could not be opened for writing: %2%.\n")) % m_file_name % ex);
55
57
  }
56
58
 
57
59
  if (!m_avi)
58
 
    mxerror(boost::format(Y("The file '%1%' could not be opened for writing (%2%).\n")) % m_file_name % AVI_strerror());
 
60
    mxerror(boost::format(Y("The file '%1%' could not be opened for writing: %2%.\n")) % m_file_name % AVI_strerror());
59
61
 
60
62
  std::string writing_app = "mkvextract";
61
63
  if (!hack_engaged(ENGAGE_NO_VARIABLE_DATA))
106
108
  safefree(m_bih);
107
109
  m_bih = nullptr;
108
110
}
109