libeplayer3/linuxdvb: reduce debug spam

This commit is contained in:
martii
2013-12-15 15:14:35 +01:00
parent 43b0c8c184
commit 9b7139ada1
2 changed files with 4 additions and 17 deletions

View File

@@ -520,7 +520,7 @@ static void FFMPEGThread(Context_t * context)
&packet);
if (len < 0) {
restart_audio_resampling = 1;
// fprintf(stderr, "avcodec_decode_audio4: %d\n", len);
// fprintf(stderr, "avcodec_decode_audio4: %d\n", len);
break;
}

View File

@@ -705,26 +705,13 @@ int LinuxDvbPts(Context_t * context
// pts is a non writting requests and can be done in parallel to other requests
//getLinuxDVBMutex(FILENAME, __FUNCTION__,__LINE__);
if (videofd > -1
&& !ioctl(videofd, VIDEO_GET_PTS, (void *) &sCURRENT_PTS))
if ((videofd > -1 && !ioctl(videofd, VIDEO_GET_PTS, (void *) &sCURRENT_PTS))
|| (audiofd > -1 && !ioctl(audiofd, AUDIO_GET_PTS, (void *) &sCURRENT_PTS)))
ret = cERR_LINUXDVB_NO_ERROR;
else
linuxdvb_err("VIDEO_GET_PTS: %d (%s)\n", errno, strerror(errno));
if (ret != cERR_LINUXDVB_NO_ERROR) {
if (audiofd > -1
&& !ioctl(audiofd, AUDIO_GET_PTS, (void *) &sCURRENT_PTS))
ret = cERR_LINUXDVB_NO_ERROR;
else
linuxdvb_err("AUDIO_GET_PTS: %d (%s)\n", errno,
strerror(errno));
}
if (ret != cERR_LINUXDVB_NO_ERROR)
sCURRENT_PTS = 0;
*((unsigned long long int *) pts) =
(unsigned long long int) sCURRENT_PTS;
*((unsigned long long int *) pts) = (unsigned long long int) sCURRENT_PTS;
//releaseLinuxDVBMutex(FILENAME, __FUNCTION__,__LINE__);