mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-29 16:30:57 +02:00
libeplayer/text_srt: minor optimization
Origin commit data
------------------
Branch: master
Commit: 46a5151f07
Author: martii <m4rtii@gmx.de>
Date: 2013-08-04 (Sun, 04 Aug 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -181,10 +181,7 @@ static void* SrtSubtitleThread(void *data) {
|
|||||||
Text = strdup(Data);
|
Text = strdup(Data);
|
||||||
} else {
|
} else {
|
||||||
int length = strlen(Text) /* \0 -> \n */ + strlen(Data) + 2 /* \0 */;
|
int length = strlen(Text) /* \0 -> \n */ + strlen(Data) + 2 /* \0 */;
|
||||||
char * tmpText = strdup(Text);
|
char * tmpText = Text;
|
||||||
|
|
||||||
free(Text);
|
|
||||||
|
|
||||||
Text = (char*)malloc(length);
|
Text = (char*)malloc(length);
|
||||||
|
|
||||||
strcpy(Text, tmpText);
|
strcpy(Text, tmpText);
|
||||||
|
Reference in New Issue
Block a user