mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
Testing foreign ts+xml recording playback, new libcs and libnxp needed
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1133 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -44,7 +44,7 @@ public:
|
||||
void DMNotify(int Event, void *pTsBuf, void *Tag);
|
||||
bool Open(playmode_t PlayMode);
|
||||
void Close(void);
|
||||
bool Start(char * filename, unsigned short vpid, int vtype, unsigned short apid, int audio_flag);
|
||||
bool Start(char * filename, unsigned short vpid, int vtype, unsigned short apid, int audio_flag, unsigned int duration = 0);
|
||||
bool Stop(void);
|
||||
bool SetAPid(unsigned short pid, int audio_flag);
|
||||
bool SetSpeed(int speed);
|
||||
|
@@ -856,7 +856,11 @@ void CMoviePlayerGui::PlayFile(void)
|
||||
|
||||
printf("IS FILE PLAYER: %s\n", is_file_player ? "true": "false" );
|
||||
|
||||
if(!playback->Start((char *)filename, g_vpid, g_vtype, CAPIDSelectExec::g_currentapid, CAPIDSelectExec::g_currentac3)) {
|
||||
duration = 0;
|
||||
if(p_movie_info != NULL)
|
||||
duration = p_movie_info->length * 60 * 1000;
|
||||
|
||||
if(!playback->Start((char *)filename, g_vpid, g_vtype, CAPIDSelectExec::g_currentapid, CAPIDSelectExec::g_currentac3, duration)) {
|
||||
playback->Close();
|
||||
restoreNeutrino();
|
||||
} else {
|
||||
@@ -914,7 +918,9 @@ void CMoviePlayerGui::PlayFile(void)
|
||||
if(duration > 100)
|
||||
file_prozent = (unsigned char) (position / (duration / 100));
|
||||
playback->GetSpeed(speed);
|
||||
// printf("CMoviePlayerGui::PlayFile: speed %d position %d duration %d (%d, %d%%)\n", speed, position, duration, duration-position, file_prozent);
|
||||
#ifdef DEBUG
|
||||
printf("CMoviePlayerGui::PlayFile: speed %d position %d duration %d (%d, %d%%)\n", speed, position, duration, duration-position, file_prozent);
|
||||
#endif
|
||||
if (duration - position < 1000 && !timeshift)
|
||||
{
|
||||
/* 10 seconds after end-of-file, exit */
|
||||
|
Reference in New Issue
Block a user