<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<p>Hi Marcel,</p>
<p>On 2016-12-15 16:32, Marcel Schnirring wrote:</p>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050">
<pre><code> After another week passt, asking again for the state of my patch...</code></pre>
</blockquote>
<p>Please see the below linked reply (the contents still applies):</p>
<ul>
<li>https://mailman.videolan.org/pipermail/vlc-devel/2016-December/110845.html</li>
</ul>
<p>I do not have commit access myself, and as such I can only provide recommendations in terms of getting things merged into the codebase.</p>
<p>Submitting your work to <code>vlc-devel</code> in the way which is intended would surely help merging it, especially given that your previous emails does not include a proper commit message (nor does it include the relevant information in regards of <em>Author</em>, etc).</p>
<p>Best Regards,<br />
Filip Roséen</p>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050">
<pre><code> *Mit freundlichen Grüßen / Kind regards,*
Marcel Schnirring
*Heilbronner Strasse 36*
*76131 Karlsruhe*
*Deutschland / Germany*
*Email: ms@marcel-schnirring.de <ms@marcel-schnirring.de>*
*Mobile: (+49) 178 198 37 61*
On Thu, Dec 8, 2016 at 10:21 PM, Marcel Schnirring <ms@marcel-schnirring.de>
wrote:</code></pre>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050">
<pre><code> ---
include/vlc_playlist.h | 3 ++-
src/playlist/sort.c | 14 ++++++++++++--
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/include/vlc_playlist.h b/include/vlc_playlist.h
index 6e42cb5..6a65c80 100644
--- a/include/vlc_playlist.h
+++ b/include/vlc_playlist.h
@@ -186,7 +186,8 @@ struct playlist_t
DEF( SORT_DESCRIPTION )\
DEF( SORT_RATING )\
DEF( SORT_URI )\
- DEF( SORT_DISC_NUMBER )
+ DEF( SORT_DISC_NUMBER )\
+ DEF( SORT_DATE )
#define DEF( s ) s,
enum
diff --git a/src/playlist/sort.c b/src/playlist/sort.c
index 588bd35..f241167 100644
--- a/src/playlist/sort.c
+++ b/src/playlist/sort.c
@@ -226,12 +226,22 @@ SORTFN( SORT_ALBUM, first, second )
return i_ret;
}
+SORTFN( SORT_DATE, first, second )
+{
+ int i_ret = meta_sort( first, second, vlc_meta_Date, true );
+ /* Items came from the same date: compare the albums */
+ if( i_ret == 0 )
+ i_ret = proto_SORT_ALBUM( first, second );
+
+ return i_ret;
+}
+
SORTFN( SORT_ARTIST, first, second )
{
int i_ret = meta_sort( first, second, vlc_meta_Artist, false );
- /* Items came from the same artist: compare the albums */
+ /* Items came from the same artist: compare the dates */
if( i_ret == 0 )
- i_ret = proto_SORT_ALBUM( first, second );
+ i_ret = proto_SORT_DATE( first, second );
return i_ret;
}
--
2.10.2.windows.1</code></pre>
</blockquote>
</blockquote>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050">
<pre><code> _______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
https://mailman.videolan.org/listinfo/vlc-devel</code></pre>
</blockquote>
</body>
</html>