mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 07:22:44 +02:00
libeplayer3: c++ adjustments
Origin commit data
------------------
Branch: master
Commit: ec307c0f09
Author: martii <m4rtii@gmx.de>
Date: 2014-04-05 (Sat, 05 Apr 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -63,16 +63,6 @@ void copyTrack(Track_t * to, Track_t * from)
|
||||
{
|
||||
*to = *from;
|
||||
|
||||
if (from->Name != NULL)
|
||||
to->Name = strdup(from->Name);
|
||||
else
|
||||
to->Name = strdup("Unknown");
|
||||
|
||||
if (from->Encoding != NULL)
|
||||
to->Encoding = strdup(from->Encoding);
|
||||
else
|
||||
to->Encoding = strdup("Unknown");
|
||||
|
||||
if (from->language != NULL)
|
||||
to->language = strdup(from->language);
|
||||
else
|
||||
@@ -81,18 +71,6 @@ void copyTrack(Track_t * to, Track_t * from)
|
||||
|
||||
void freeTrack(Track_t * track)
|
||||
{
|
||||
if (track->Name != NULL)
|
||||
free(track->Name);
|
||||
|
||||
if (track->Encoding != NULL)
|
||||
free(track->Encoding);
|
||||
|
||||
if (track->language != NULL)
|
||||
free(track->language);
|
||||
|
||||
#if 0
|
||||
if (track->aacbuf != NULL)
|
||||
free(track->aacbuf);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user