mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +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
Origin commit data
------------------
Commit: cdae0a8bd3
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2011-02-09 (Wed, 09 Feb 2011)
This commit is contained in:
@@ -44,7 +44,7 @@ public:
|
|||||||
void DMNotify(int Event, void *pTsBuf, void *Tag);
|
void DMNotify(int Event, void *pTsBuf, void *Tag);
|
||||||
bool Open(playmode_t PlayMode);
|
bool Open(playmode_t PlayMode);
|
||||||
void Close(void);
|
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 Stop(void);
|
||||||
bool SetAPid(unsigned short pid, int audio_flag);
|
bool SetAPid(unsigned short pid, int audio_flag);
|
||||||
bool SetSpeed(int speed);
|
bool SetSpeed(int speed);
|
||||||
|
@@ -856,7 +856,11 @@ void CMoviePlayerGui::PlayFile(void)
|
|||||||
|
|
||||||
printf("IS FILE PLAYER: %s\n", is_file_player ? "true": "false" );
|
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();
|
playback->Close();
|
||||||
restoreNeutrino();
|
restoreNeutrino();
|
||||||
} else {
|
} else {
|
||||||
@@ -914,7 +918,9 @@ void CMoviePlayerGui::PlayFile(void)
|
|||||||
if(duration > 100)
|
if(duration > 100)
|
||||||
file_prozent = (unsigned char) (position / (duration / 100));
|
file_prozent = (unsigned char) (position / (duration / 100));
|
||||||
playback->GetSpeed(speed);
|
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)
|
if (duration - position < 1000 && !timeshift)
|
||||||
{
|
{
|
||||||
/* 10 seconds after end-of-file, exit */
|
/* 10 seconds after end-of-file, exit */
|
||||||
|
Reference in New Issue
Block a user