]> git.sesse.net Git - vlc/blobdiff - src/playlist/item.c
Get rid of --enable-shared-libvlc on non-Microsoft platforms
[vlc] / src / playlist / item.c
index 64ae5e92a8fa16b54514a83006f86d1bd3db73fd..6f4eb9409187792f3079174654da864e3b1433e0 100644 (file)
@@ -18,7 +18,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 #include <stdlib.h>                                      /* free(), strtol() */
 #include <stdio.h>                                              /* sprintf() */
@@ -63,6 +63,9 @@ playlist_item_t * playlist_ItemNewWithType( vlc_object_t *p_obj,
 
     memset( p_item, 0, sizeof( playlist_item_t ) );
 
+    vlc_input_item_Init( p_obj, &p_item->input );
+    p_item->input.b_fixed_name = VLC_FALSE;
+
     p_item->input.psz_uri = strdup( psz_uri );
 
     if( psz_name != NULL ) p_item->input.psz_name = strdup( psz_name );
@@ -395,11 +398,13 @@ static void GuessType( input_item_t *p_item)
         { NULL, 0 }
     };
 
+#if 0 /* Unused */
     static struct { char *psz_search; int i_type; } exts_array[] =
     {
         { "mp3", ITEM_TYPE_AFILE },
         { NULL, 0 }
     };
+#endif
 
     for( i = 0; types_array[i].psz_search != NULL; i++ )
     {