|
Continous Play and No Track Change happening after Play
|
07/25/2013 2:48 AM
post103546
|
Continous Play and No Track Change happening after Play
Hello,
Please help me in fixing the following issue
Issue:
Continuous Play and No Track change happening.Also unable do Stop.
Following is the Database
# qdbc -d /dev/qdb/mme
Connected to "/dev/qdb/mme". Use 'ctrl-C' to end.
SQL>
>
> select msid,mountpath from mediastores;
Rows: 2 Cols: 2
Names: +msid+mountpath+
00000: |1|/media/drive|
00001: |2|/fs/usb0|
SQL>
> select * from nowplaying;
Rows: 1 Cols: 21
Names: +ccid+playing+fid+msid+ftype+year+bitrate+samplerate+num_channels+size+discnum+tracknum+rating+copied_fid+
filename+artist+title+album+genre+category+description+
00000: |1|0|4|1|1|0|1411200|44100|2|228396|0|0|0|0|adr.wav|Unknown Artist|[NULL]|Unknown Album|Unknown Genre|Unknown
Category||
SQL> select fid,msid,playable,ftype,duration,folderid,filename from library;
Rows: 11 Cols: 7
Names: +fid+msid+playable+ftype+duration+folderid+filename+
00000: |1|1|1|5|0|1||
00001: |2|1|1|4|0|1|AlbumArtSmall.jpg|
00002: |3|1|1|4|0|1|Folder.jpg|
00003: |4|1|1|1|1294|1|adr.wav|
00004: |5|1|1|1|208535|1|AMBER.wav|
00005: |6|2|1|5|0|2||
00006: |7|2|1|1|208535|2|amber.wav|
00007: |8|2|1|1|274311|2|Deewana.mp3|
00008: |9|2|1|1|266109|2|Barfi3Kyon.mp3|
00009: |10|2|1|1|270393|2|Barfi2.mp3|
00010: |11|2|1|1|319268|2|Barfi1.mp3|
SQL> select * from nowplaying
> ;
Rows: 1 Cols: 21
Names: +ccid+playing+fid+msid+ftype+year+bitrate+samplerate+num_channels+size+discnum+tracknum+rating+copied_fid+
filename+artist+title+album+genre+category+description+
00000: |1|0|4|1|1|0|1411200|44100|2|228396|0|0|0|0|adr.wav|Unknown Artist|[NULL]|Unknown Album|Unknown Genre|Unknown
Category||
SQL>
#
#
I started play as below
//m_hMME is the MME handler
char *sql = qdb_mprintf("SELECT fid FROM library WHERE msid=%llu and ftype=1",msId);
//create the new track session
ret = mme_newtrksession( m_hMME, sql, MME_PLAYMODE_LIBRARY, &trksessionid );
if (ret == -1)
{
printf("Warning:error creating new track session");
return ret;
}
else
{
//Set the track session
if( -1 == mme_settrksession( m_hMME, trksessionid ))
{
printf("Warning:error creating set track session\n");
ret=-1;
return ret;
}
if(-1 == mme_play_attach_output(m_hMME, m_ZoneId,m_OutputId))
{
printf("mme_play_attach_output failed:zone id(%lld),output id:%lld",
m_ZoneId, m_OutputId);
}
// pass in a fid of 0 to start from the beginning.
if( -1 == mme_play(m_hMME, 0))
{
printf("Error Play Failed %d-%s\n",errno,strerror(errno));
ret=-1;
}
else
{
printf("Play Pass\n");
}
Play is succes but it continuous.Iam continously receiving the MME_EVENT_TIME.
Always nowplaying database is showing the first song of the corresponding media store.No change happening to the
nowplaying table.
Also when tried to stop ,there is no response.
Please find the log below
Jan 01 00:01:29 3 20 1 io-media-generic/aoi: PreParseID3Tag() offset 2789 truncating at offset on invalid
frame id from size = 4043
Jan 01 00:01:30 1 27 0 MME:ocb_lock(150): Concurrent MME handle usage pid 458786, tid 57!
Jan 01 00:01:30 1 27 0 MME:ocb_lock(150): Concurrent MME handle usage pid 458786, tid 57!
Jan 01 00:01:30 1 27 0 MME:ocb_lock(150): Concurrent MME handle usage pid 458786, tid 57!
Jan 01 00:01:30 1 27 0 MME:ocb_lock(150): Concurrent MME handle usage pid 458786, tid 57!
Jan 01 00:01:30 1 27 0 MME:ocb_lock(150): Concurrent MME handle usage pid 458786, tid 57!
Jan 01 00:01:30 5 20 1 io-media-generic/mmf: writer hint snd:* found
Jan 01 00:01:30 5 20 1 io-media-generic/trackplayer: Skipping video subgraph because there is no video device
specified.
Jan 01 00:01:30 5 20 1 io-media-generic/aoi:...
View Full Message
|
|
|