[MPlayer-cvslog] r37496 - in trunk/gui: interface.h ui/actions.c

ib subversion at mplayerhq.hu
Tue Sep 8 11:44:37 CEST 2015


Author: ib
Date: Tue Sep  8 11:44:37 2015
New Revision: 37496

Log:
Extend the guiInterface_t structure.

Add support for the new playlist information (title and start/stop
time).

Modified:
   trunk/gui/interface.h
   trunk/gui/ui/actions.c

Modified: trunk/gui/interface.h
==============================================================================
--- trunk/gui/interface.h	Tue Sep  8 11:35:39 2015	(r37495)
+++ trunk/gui/interface.h	Tue Sep  8 11:44:37 2015	(r37496)
@@ -119,6 +119,7 @@ typedef struct {
     stream_language_t Subtitle[32];
 
     char *Filename;           // public, read access by MPlayer
+    char *Title;
     char *AudioFilename;
     char *SubtitleFilename;
     char *ImageFilename;
@@ -141,6 +142,9 @@ typedef struct {
 
     int MediumChanged;        // public, read access by MPlayer
     int PlaylistNext;
+
+    int Start;
+    int Stop;
 } guiInterface_t;
 
 extern guiInterface_t guiInfo;

Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c	Tue Sep  8 11:35:39 2015	(r37495)
+++ trunk/gui/ui/actions.c	Tue Sep  8 11:44:37 2015	(r37496)
@@ -756,6 +756,8 @@ void uiUnsetMedia(int totals)
     guiInfo.AudioChannels    = 0;
     guiInfo.AudioPassthrough = False;
     guiInfo.RunningTime      = 0;
+    guiInfo.Start = 0;
+    guiInfo.Stop  = 0;
 
     if (totals) {
         guiInfo.Chapters = 0;
@@ -769,6 +771,7 @@ void uiUnsetMedia(int totals)
     }
 
     nfree(guiInfo.CodecName);
+    nfree(guiInfo.Title);
     nfree(guiInfo.AudioFilename);
     nfree(guiInfo.SubtitleFilename);
     nfree(guiInfo.ImageFilename);


More information about the MPlayer-cvslog mailing list