Link against msvcrt.dll using the right property sheet. Whitespacey.
authorunknown <xavi@.(none)>
Fri, 20 Apr 2012 11:50:10 +0000 (13:50 +0200)
committerunknown <xavi@.(none)>
Fri, 20 Apr 2012 11:50:10 +0000 (13:50 +0200)
gst-sdk/tutorials/basic-tutorial-5.c
vs/2010/tutorials/basic-tutorial-1/basic-tutorial-1.vcxproj
vs/2010/tutorials/basic-tutorial-2/basic-tutorial-2.vcxproj
vs/2010/tutorials/basic-tutorial-3/basic-tutorial-3.vcxproj
vs/2010/tutorials/basic-tutorial-4/basic-tutorial-4.vcxproj
vs/2010/tutorials/basic-tutorial-5/basic-tutorial-5.vcxproj
vs/2010/tutorials/playback-tutorial-1/playback-tutorial-1.vcxproj

index 639cc25..83e0a88 100644 (file)
@@ -224,88 +224,88 @@ static void state_changed_cb (GstBus *bus, GstMessage *msg, CustomData *data) {
   }
 }
   
-/* Extract metadata from all the streams and write it to the text widget in the GUI */\r
-static void analyze_streams (CustomData *data) {\r
-  gint i;\r
-  GstTagList *tags;\r
-  gchar *str, *total_str;\r
-  guint rate;\r
+/* Extract metadata from all the streams and write it to the text widget in the GUI */
+static void analyze_streams (CustomData *data) {
+  gint i;
+  GstTagList *tags;
+  gchar *str, *total_str;
+  guint rate;
   gint n_video, n_audio, n_text;
-  GtkTextBuffer *text;\r
+  GtkTextBuffer *text;
   
   /* Clean current contents of the widget */
-  text = gtk_text_view_get_buffer (GTK_TEXT_VIEW (data->streams_list));\r
-  gtk_text_buffer_set_text (text, "", -1);\r
-  \r
-  /* Read some properties */\r
-  g_object_get (data->playbin2, "n-video", &n_video, NULL);\r
-  g_object_get (data->playbin2, "n-audio", &n_audio, NULL);\r
-  g_object_get (data->playbin2, "n-text", &n_text, NULL);\r
-  \r
-  for (i = 0; i < n_video; i++) {\r
-    tags = NULL;\r
-    /* Retrieve the stream's video tags */\r
-    g_signal_emit_by_name (data->playbin2, "get-video-tags", i, &tags);\r
-    if (tags) {\r
-      total_str = g_strdup_printf ("video stream %d:\n", i);\r
-      gtk_text_buffer_insert_at_cursor (text, total_str, -1);\r
-      g_free (total_str);\r
-      gst_tag_list_get_string (tags, GST_TAG_VIDEO_CODEC, &str);\r
-      total_str = g_strdup_printf ("  codec: %s\n", str ? str : "unknown");\r
-      gtk_text_buffer_insert_at_cursor (text, total_str, -1);\r
-      g_free (total_str);\r
-      g_free (str);\r
-      gst_tag_list_free (tags);\r
-    }\r
-  }\r
-  \r
-  for (i = 0; i < n_audio; i++) {\r
-    tags = NULL;\r
-    /* Retrieve the stream's audio tags */\r
-    g_signal_emit_by_name (data->playbin2, "get-audio-tags", i, &tags);\r
-    if (tags) {\r
-      total_str = g_strdup_printf ("\naudio stream %d:\n", i);\r
-      gtk_text_buffer_insert_at_cursor (text, total_str, -1);\r
-      g_free (total_str);\r
-      if (gst_tag_list_get_string (tags, GST_TAG_AUDIO_CODEC, &str)) {\r
-        total_str = g_strdup_printf ("  codec: %s\n", str);\r
-        gtk_text_buffer_insert_at_cursor (text, total_str, -1);\r
-        g_free (total_str);\r
-        g_free (str);\r
-      }\r
-      if (gst_tag_list_get_string (tags, GST_TAG_LANGUAGE_CODE, &str)) {\r
-        total_str = g_strdup_printf ("  language: %s\n", str);\r
-        gtk_text_buffer_insert_at_cursor (text, total_str, -1);\r
-        g_free (total_str);\r
-        g_free (str);\r
-      }\r
-      if (gst_tag_list_get_uint (tags, GST_TAG_BITRATE, &rate)) {\r
-        total_str = g_strdup_printf ("  bitrate: %d\n", rate);\r
-        gtk_text_buffer_insert_at_cursor (text, total_str, -1);\r
-        g_free (total_str);\r
-      }\r
-      gst_tag_list_free (tags);\r
-    }\r
-  }\r
-  \r
-  for (i = 0; i < n_text; i++) {\r
-    tags = NULL;\r
-    /* Retrieve the stream's subtitle tags */\r
-    g_signal_emit_by_name (data->playbin2, "get-text-tags", i, &tags);\r
-    if (tags) {\r
-      total_str = g_strdup_printf ("\nsubtitle stream %d:\n", i);\r
-      gtk_text_buffer_insert_at_cursor (text, total_str, -1);\r
-      g_free (total_str);\r
-      if (gst_tag_list_get_string (tags, GST_TAG_LANGUAGE_CODE, &str)) {\r
-        total_str = g_strdup_printf ("  language: %s\n", str);\r
-        gtk_text_buffer_insert_at_cursor (text, total_str, -1);\r
-        g_free (total_str);\r
-        g_free (str);\r
-      }\r
-      gst_tag_list_free (tags);\r
-    }\r
-  }\r
-}\r
+  text = gtk_text_view_get_buffer (GTK_TEXT_VIEW (data->streams_list));
+  gtk_text_buffer_set_text (text, "", -1);
+  
+  /* Read some properties */
+  g_object_get (data->playbin2, "n-video", &n_video, NULL);
+  g_object_get (data->playbin2, "n-audio", &n_audio, NULL);
+  g_object_get (data->playbin2, "n-text", &n_text, NULL);
+  
+  for (i = 0; i < n_video; i++) {
+    tags = NULL;
+    /* Retrieve the stream's video tags */
+    g_signal_emit_by_name (data->playbin2, "get-video-tags", i, &tags);
+    if (tags) {
+      total_str = g_strdup_printf ("video stream %d:\n", i);
+      gtk_text_buffer_insert_at_cursor (text, total_str, -1);
+      g_free (total_str);
+      gst_tag_list_get_string (tags, GST_TAG_VIDEO_CODEC, &str);
+      total_str = g_strdup_printf ("  codec: %s\n", str ? str : "unknown");
+      gtk_text_buffer_insert_at_cursor (text, total_str, -1);
+      g_free (total_str);
+      g_free (str);
+      gst_tag_list_free (tags);
+    }
+  }
+  
+  for (i = 0; i < n_audio; i++) {
+    tags = NULL;
+    /* Retrieve the stream's audio tags */
+    g_signal_emit_by_name (data->playbin2, "get-audio-tags", i, &tags);
+    if (tags) {
+      total_str = g_strdup_printf ("\naudio stream %d:\n", i);
+      gtk_text_buffer_insert_at_cursor (text, total_str, -1);
+      g_free (total_str);
+      if (gst_tag_list_get_string (tags, GST_TAG_AUDIO_CODEC, &str)) {
+        total_str = g_strdup_printf ("  codec: %s\n", str);
+        gtk_text_buffer_insert_at_cursor (text, total_str, -1);
+        g_free (total_str);
+        g_free (str);
+      }
+      if (gst_tag_list_get_string (tags, GST_TAG_LANGUAGE_CODE, &str)) {
+        total_str = g_strdup_printf ("  language: %s\n", str);
+        gtk_text_buffer_insert_at_cursor (text, total_str, -1);
+        g_free (total_str);
+        g_free (str);
+      }
+      if (gst_tag_list_get_uint (tags, GST_TAG_BITRATE, &rate)) {
+        total_str = g_strdup_printf ("  bitrate: %d\n", rate);
+        gtk_text_buffer_insert_at_cursor (text, total_str, -1);
+        g_free (total_str);
+      }
+      gst_tag_list_free (tags);
+    }
+  }
+  
+  for (i = 0; i < n_text; i++) {
+    tags = NULL;
+    /* Retrieve the stream's subtitle tags */
+    g_signal_emit_by_name (data->playbin2, "get-text-tags", i, &tags);
+    if (tags) {
+      total_str = g_strdup_printf ("\nsubtitle stream %d:\n", i);
+      gtk_text_buffer_insert_at_cursor (text, total_str, -1);
+      g_free (total_str);
+      if (gst_tag_list_get_string (tags, GST_TAG_LANGUAGE_CODE, &str)) {
+        total_str = g_strdup_printf ("  language: %s\n", str);
+        gtk_text_buffer_insert_at_cursor (text, total_str, -1);
+        g_free (total_str);
+        g_free (str);
+      }
+      gst_tag_list_free (tags);
+    }
+  }
+}
   
 /* This function is called when an "application" message is posted on the bus.
  * Here we retrieve the message posted by the tags_cb callback */
index b5a2dab..25c6579 100644 (file)
   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />\r
     <Import Project="..\..\libs\gstreamer-0.10.props" />\r
+    <Import Project="..\..\libs\msvc\x86.props" />\r
   </ImportGroup>\r
   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />\r
     <Import Project="..\..\libs\gstreamer-0.10.props" />\r
+    <Import Project="..\..\libs\msvc\x86.props" />\r
   </ImportGroup>\r
   <PropertyGroup Label="UserMacros" />\r
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
@@ -56,6 +58,8 @@
     <Link>\r
       <SubSystem>Console</SubSystem>\r
       <GenerateDebugInformation>true</GenerateDebugInformation>\r
+      <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>\r
+      <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>\r
     </Link>\r
   </ItemDefinitionGroup>\r
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
index 2a77d02..fc4093d 100644 (file)
   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />\r
     <Import Project="..\..\libs\gstreamer-0.10.props" />\r
+    <Import Project="..\..\libs\msvc\x86.props" />\r
   </ImportGroup>\r
   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />\r
     <Import Project="..\..\libs\gstreamer-0.10.props" />\r
+    <Import Project="..\..\libs\msvc\x86.props" />\r
   </ImportGroup>\r
   <PropertyGroup Label="UserMacros" />\r
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
index 46ebf02..b0840ca 100644 (file)
   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />\r
     <Import Project="..\..\libs\gstreamer-0.10.props" />\r
+    <Import Project="..\..\libs\msvc\x86.props" />\r
   </ImportGroup>\r
   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />\r
     <Import Project="..\..\libs\gstreamer-0.10.props" />\r
+    <Import Project="..\..\libs\msvc\x86.props" />\r
   </ImportGroup>\r
   <PropertyGroup Label="UserMacros" />\r
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
index bbbeb80..86e2da9 100644 (file)
   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />\r
     <Import Project="..\..\libs\gstreamer-0.10.props" />\r
+    <Import Project="..\..\libs\msvc\x86.props" />\r
   </ImportGroup>\r
   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />\r
     <Import Project="..\..\libs\gstreamer-0.10.props" />\r
+    <Import Project="..\..\libs\msvc\x86.props" />\r
   </ImportGroup>\r
   <PropertyGroup Label="UserMacros" />\r
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
index 610d054..86837c6 100644 (file)
     <Import Project="..\..\libs\gstreamer-0.10.props" />\r
     <Import Project="..\..\libs\gtk+-2.0.props" />\r
     <Import Project="..\..\libs\gstreamer-interfaces-0.10.props" />\r
+    <Import Project="..\..\libs\msvc\x86.props" />\r
   </ImportGroup>\r
   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />\r
     <Import Project="..\..\libs\gstreamer-0.10.props" />\r
     <Import Project="..\..\libs\gtk+-2.0.props" />\r
     <Import Project="..\..\libs\gstreamer-interfaces-0.10.props" />\r
+    <Import Project="..\..\libs\msvc\x86.props" />\r
   </ImportGroup>\r
   <PropertyGroup Label="UserMacros" />\r
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
index c27a6ad..79bed35 100644 (file)
   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />\r
     <Import Project="..\..\libs\gstreamer-0.10.props" />\r
+    <Import Project="..\..\libs\msvc\x86.props" />\r
   </ImportGroup>\r
   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />\r
     <Import Project="..\..\libs\gstreamer-0.10.props" />\r
+    <Import Project="..\..\libs\msvc\x86.props" />\r
   </ImportGroup>\r
   <PropertyGroup Label="UserMacros" />\r
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r