mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
Link against msvcrt.dll using the right property sheet. Whitespacey.
This commit is contained in:
parent
04f87e2d06
commit
f1cf5cbac7
7 changed files with 93 additions and 79 deletions
|
@ -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 */
|
/* Extract metadata from all the streams and write it to the text widget in the GUI */
|
||||||
static void analyze_streams (CustomData *data) {
|
static void analyze_streams (CustomData *data) {
|
||||||
gint i;
|
gint i;
|
||||||
GstTagList *tags;
|
GstTagList *tags;
|
||||||
gchar *str, *total_str;
|
gchar *str, *total_str;
|
||||||
guint rate;
|
guint rate;
|
||||||
gint n_video, n_audio, n_text;
|
gint n_video, n_audio, n_text;
|
||||||
GtkTextBuffer *text;
|
GtkTextBuffer *text;
|
||||||
|
|
||||||
/* Clean current contents of the widget */
|
/* Clean current contents of the widget */
|
||||||
text = gtk_text_view_get_buffer (GTK_TEXT_VIEW (data->streams_list));
|
text = gtk_text_view_get_buffer (GTK_TEXT_VIEW (data->streams_list));
|
||||||
gtk_text_buffer_set_text (text, "", -1);
|
gtk_text_buffer_set_text (text, "", -1);
|
||||||
|
|
||||||
/* Read some properties */
|
/* Read some properties */
|
||||||
g_object_get (data->playbin2, "n-video", &n_video, NULL);
|
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-audio", &n_audio, NULL);
|
||||||
g_object_get (data->playbin2, "n-text", &n_text, NULL);
|
g_object_get (data->playbin2, "n-text", &n_text, NULL);
|
||||||
|
|
||||||
for (i = 0; i < n_video; i++) {
|
for (i = 0; i < n_video; i++) {
|
||||||
tags = NULL;
|
tags = NULL;
|
||||||
/* Retrieve the stream's video tags */
|
/* Retrieve the stream's video tags */
|
||||||
g_signal_emit_by_name (data->playbin2, "get-video-tags", i, &tags);
|
g_signal_emit_by_name (data->playbin2, "get-video-tags", i, &tags);
|
||||||
if (tags) {
|
if (tags) {
|
||||||
total_str = g_strdup_printf ("video stream %d:\n", i);
|
total_str = g_strdup_printf ("video stream %d:\n", i);
|
||||||
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
||||||
g_free (total_str);
|
g_free (total_str);
|
||||||
gst_tag_list_get_string (tags, GST_TAG_VIDEO_CODEC, &str);
|
gst_tag_list_get_string (tags, GST_TAG_VIDEO_CODEC, &str);
|
||||||
total_str = g_strdup_printf (" codec: %s\n", str ? str : "unknown");
|
total_str = g_strdup_printf (" codec: %s\n", str ? str : "unknown");
|
||||||
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
||||||
g_free (total_str);
|
g_free (total_str);
|
||||||
g_free (str);
|
g_free (str);
|
||||||
gst_tag_list_free (tags);
|
gst_tag_list_free (tags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < n_audio; i++) {
|
for (i = 0; i < n_audio; i++) {
|
||||||
tags = NULL;
|
tags = NULL;
|
||||||
/* Retrieve the stream's audio tags */
|
/* Retrieve the stream's audio tags */
|
||||||
g_signal_emit_by_name (data->playbin2, "get-audio-tags", i, &tags);
|
g_signal_emit_by_name (data->playbin2, "get-audio-tags", i, &tags);
|
||||||
if (tags) {
|
if (tags) {
|
||||||
total_str = g_strdup_printf ("\naudio stream %d:\n", i);
|
total_str = g_strdup_printf ("\naudio stream %d:\n", i);
|
||||||
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
||||||
g_free (total_str);
|
g_free (total_str);
|
||||||
if (gst_tag_list_get_string (tags, GST_TAG_AUDIO_CODEC, &str)) {
|
if (gst_tag_list_get_string (tags, GST_TAG_AUDIO_CODEC, &str)) {
|
||||||
total_str = g_strdup_printf (" codec: %s\n", str);
|
total_str = g_strdup_printf (" codec: %s\n", str);
|
||||||
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
||||||
g_free (total_str);
|
g_free (total_str);
|
||||||
g_free (str);
|
g_free (str);
|
||||||
}
|
}
|
||||||
if (gst_tag_list_get_string (tags, GST_TAG_LANGUAGE_CODE, &str)) {
|
if (gst_tag_list_get_string (tags, GST_TAG_LANGUAGE_CODE, &str)) {
|
||||||
total_str = g_strdup_printf (" language: %s\n", str);
|
total_str = g_strdup_printf (" language: %s\n", str);
|
||||||
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
||||||
g_free (total_str);
|
g_free (total_str);
|
||||||
g_free (str);
|
g_free (str);
|
||||||
}
|
}
|
||||||
if (gst_tag_list_get_uint (tags, GST_TAG_BITRATE, &rate)) {
|
if (gst_tag_list_get_uint (tags, GST_TAG_BITRATE, &rate)) {
|
||||||
total_str = g_strdup_printf (" bitrate: %d\n", rate);
|
total_str = g_strdup_printf (" bitrate: %d\n", rate);
|
||||||
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
||||||
g_free (total_str);
|
g_free (total_str);
|
||||||
}
|
}
|
||||||
gst_tag_list_free (tags);
|
gst_tag_list_free (tags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < n_text; i++) {
|
for (i = 0; i < n_text; i++) {
|
||||||
tags = NULL;
|
tags = NULL;
|
||||||
/* Retrieve the stream's subtitle tags */
|
/* Retrieve the stream's subtitle tags */
|
||||||
g_signal_emit_by_name (data->playbin2, "get-text-tags", i, &tags);
|
g_signal_emit_by_name (data->playbin2, "get-text-tags", i, &tags);
|
||||||
if (tags) {
|
if (tags) {
|
||||||
total_str = g_strdup_printf ("\nsubtitle stream %d:\n", i);
|
total_str = g_strdup_printf ("\nsubtitle stream %d:\n", i);
|
||||||
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
||||||
g_free (total_str);
|
g_free (total_str);
|
||||||
if (gst_tag_list_get_string (tags, GST_TAG_LANGUAGE_CODE, &str)) {
|
if (gst_tag_list_get_string (tags, GST_TAG_LANGUAGE_CODE, &str)) {
|
||||||
total_str = g_strdup_printf (" language: %s\n", str);
|
total_str = g_strdup_printf (" language: %s\n", str);
|
||||||
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
gtk_text_buffer_insert_at_cursor (text, total_str, -1);
|
||||||
g_free (total_str);
|
g_free (total_str);
|
||||||
g_free (str);
|
g_free (str);
|
||||||
}
|
}
|
||||||
gst_tag_list_free (tags);
|
gst_tag_list_free (tags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This function is called when an "application" message is posted on the bus.
|
/* This function is called when an "application" message is posted on the bus.
|
||||||
* Here we retrieve the message posted by the tags_cb callback */
|
* Here we retrieve the message posted by the tags_cb callback */
|
||||||
|
|
|
@ -33,10 +33,12 @@
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
||||||
|
<Import Project="..\..\libs\msvc\x86.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
||||||
|
<Import Project="..\..\libs\msvc\x86.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
@ -56,6 +58,8 @@
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
|
|
@ -33,10 +33,12 @@
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
||||||
|
<Import Project="..\..\libs\msvc\x86.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
||||||
|
<Import Project="..\..\libs\msvc\x86.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
|
|
@ -33,10 +33,12 @@
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
||||||
|
<Import Project="..\..\libs\msvc\x86.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
||||||
|
<Import Project="..\..\libs\msvc\x86.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
|
|
@ -33,10 +33,12 @@
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
||||||
|
<Import Project="..\..\libs\msvc\x86.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
||||||
|
<Import Project="..\..\libs\msvc\x86.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
|
|
@ -35,12 +35,14 @@
|
||||||
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
||||||
<Import Project="..\..\libs\gtk+-2.0.props" />
|
<Import Project="..\..\libs\gtk+-2.0.props" />
|
||||||
<Import Project="..\..\libs\gstreamer-interfaces-0.10.props" />
|
<Import Project="..\..\libs\gstreamer-interfaces-0.10.props" />
|
||||||
|
<Import Project="..\..\libs\msvc\x86.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
||||||
<Import Project="..\..\libs\gtk+-2.0.props" />
|
<Import Project="..\..\libs\gtk+-2.0.props" />
|
||||||
<Import Project="..\..\libs\gstreamer-interfaces-0.10.props" />
|
<Import Project="..\..\libs\gstreamer-interfaces-0.10.props" />
|
||||||
|
<Import Project="..\..\libs\msvc\x86.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
|
|
@ -33,10 +33,12 @@
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
||||||
|
<Import Project="..\..\libs\msvc\x86.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
<Import Project="..\..\libs\gstreamer-0.10.props" />
|
||||||
|
<Import Project="..\..\libs\msvc\x86.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
|
Loading…
Reference in a new issue