libeplayer3/linuxdvb: reduce debug spam

This commit is contained in:
martii
2013-12-15 15:14:35 +01:00
parent b08a39c4c1
commit 76bdd325c1
2 changed files with 4 additions and 17 deletions

View File

@@ -520,7 +520,7 @@ static void FFMPEGThread(Context_t * context)
&packet); &packet);
if (len < 0) { if (len < 0) {
restart_audio_resampling = 1; restart_audio_resampling = 1;
// fprintf(stderr, "avcodec_decode_audio4: %d\n", len); // fprintf(stderr, "avcodec_decode_audio4: %d\n", len);
break; 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 // pts is a non writting requests and can be done in parallel to other requests
//getLinuxDVBMutex(FILENAME, __FUNCTION__,__LINE__); //getLinuxDVBMutex(FILENAME, __FUNCTION__,__LINE__);
if (videofd > -1 if ((videofd > -1 && !ioctl(videofd, VIDEO_GET_PTS, (void *) &sCURRENT_PTS))
&& !ioctl(videofd, VIDEO_GET_PTS, (void *) &sCURRENT_PTS)) || (audiofd > -1 && !ioctl(audiofd, AUDIO_GET_PTS, (void *) &sCURRENT_PTS)))
ret = cERR_LINUXDVB_NO_ERROR; ret = cERR_LINUXDVB_NO_ERROR;
else 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; sCURRENT_PTS = 0;
*((unsigned long long int *) pts) = *((unsigned long long int *) pts) = (unsigned long long int) sCURRENT_PTS;
(unsigned long long int) sCURRENT_PTS;
//releaseLinuxDVBMutex(FILENAME, __FUNCTION__,__LINE__); //releaseLinuxDVBMutex(FILENAME, __FUNCTION__,__LINE__);