libeplayer3/manager: initialize track IDs

This commit is contained in:
martii
2013-08-16 19:50:20 +02:00
parent 124cd8e4ba
commit 2f5c51abc6
5 changed files with 15 additions and 0 deletions

View File

@@ -83,6 +83,9 @@ static int ManagerAdd(Context_t *context, Track_t track) {
if (Tracks == NULL) {
Tracks = malloc(sizeof(Track_t) * TRACKWRAP);
int i;
for (i = 0; i < TRACKWRAP; i++)
Tracks[i].Id = -1;
}
if (Tracks == NULL)

View File

@@ -83,6 +83,9 @@ static int ManagerAdd(Context_t *context, Track_t track) {
if (Tracks == NULL) {
Tracks = malloc(sizeof(Track_t) * TRACKWRAP);
int i;
for (i = 0; i < TRACKWRAP; i++)
Tracks[i].Id = -1;
}
if (Tracks == NULL)

View File

@@ -82,6 +82,9 @@ static int ManagerAdd(Context_t *context, Track_t track) {
if (Tracks == NULL) {
Tracks = malloc(sizeof(Track_t) * TRACKWRAP);
int i;
for (i = 0; i < TRACKWRAP; i++)
Tracks[i].Id = -1;
}
if (Tracks == NULL)

View File

@@ -83,6 +83,9 @@ static int ManagerAdd(Context_t *context, Track_t track) {
if (Tracks == NULL) {
Tracks = malloc(sizeof(Track_t) * TRACKWRAP);
int i;
for (i = 0; i < TRACKWRAP; i++)
Tracks[i].Id = -1;
}
if (Tracks == NULL)

View File

@@ -81,6 +81,9 @@ static int ManagerAdd(Context_t *context, Track_t track) {
if (Tracks == NULL) {
Tracks = malloc(sizeof(Track_t) * TRACKWRAP);
int i;
for (i = 0; i < TRACKWRAP; i++)
Tracks[i].Id = -1;
}
if (Tracks == NULL)