Skip to content

Commit

Permalink
Merge OpenViX
Browse files Browse the repository at this point in the history
  • Loading branch information
Ev0-BH committed Aug 13, 2023
2 parents 6eedd8a + 06b1712 commit 44372e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ if test x"$with_lcddev" != xno ; then
fi

AC_ARG_WITH(fcc,
AC_HELP_STRING([--with-fcc], [add FCC system plugin]),
AS_HELP_STRING([--with-fcc], [add FCC system plugin]),
[[with_fcc=$withval]],
[[with_fcc=no]]
)
Expand Down
3 changes: 3 additions & 0 deletions lib/dvb/pvrparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,9 @@ int eMPEGStreamInformationWriter::stopSave(void)
if (m_access_points.empty() && (m_streamtime_access_points.size() <= 1))
// Nothing to save, don't create an ap file at all
return 1;
// do not create access points if there is no recording file
if (::access(m_filename.c_str(), R_OK) < 0)
return 1;
std::string ap_filename(m_filename);
ap_filename += ".ap";
{
Expand Down
4 changes: 4 additions & 0 deletions lib/service/servicedvbrecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,10 @@ PyObject *eDVBServiceRecord::getCutList()

void eDVBServiceRecord::saveCutlist()
{
/* save cuesheet only when main file is accessible. */
if (::access(m_filename.c_str(), R_OK) < 0)
return;

std::string filename = m_filename + ".cuts";

// If a cuts file exists, append to it (who cares about sorting it)
Expand Down

0 comments on commit 44372e9

Please sign in to comment.