Changeset 96940 in webkit
- Timestamp:
- Oct 7, 2011 8:47:54 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r96939 r96940 1 2011-10-07 Philippe Normand <pnormand@igalia.com> 2 3 [GStreamer] avoid direct access to GstMessage structure field 4 https://bugs.webkit.org/show_bug.cgi?id=69629 5 6 Reviewed by Martin Robinson. 7 8 Use gst_message_get_structure() instead of direct access to the 9 structure field. No direct benefit apart from compatibility with 10 GStreamer 0.11. 11 12 * platform/graphics/gstreamer/GStreamerGWorld.cpp: 13 (WebCore::gstGWorldSyncMessageCallback): 14 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: 15 (WebCore::MediaPlayerPrivateGStreamer::handleMessage): 16 (WebCore::MediaPlayerPrivateGStreamer::mediaLocationChanged): 17 1 18 2011-10-07 Pavel Feldman <pfeldman@google.com> 2 19 -
trunk/Source/WebCore/platform/graphics/gstreamer/GStreamerGWorld.cpp
r96310 r96940 43 43 44 44 GStreamerGWorld* gstGWorld = static_cast<GStreamerGWorld*>(data); 45 46 if (gst_structure_has_name(message->structure, "prepare-xwindow-id") 47 || gst_structure_has_name(message->structure, "have-ns-view")) 45 const GstStructure* structure = gst_message_get_structure(message); 46 47 if (gst_structure_has_name(structure, "prepare-xwindow-id") 48 || gst_structure_has_name(structure, "have-ns-view")) 48 49 gstGWorld->setWindowOverlay(message); 49 50 return TRUE; -
trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
r96311 r96940 724 724 bool issueError = true; 725 725 bool attemptNextLocation = false; 726 727 if (message->structure) { 728 const gchar* messageTypeName = gst_structure_get_name(message->structure); 726 const GstStructure* structure = gst_message_get_structure(message); 727 728 if (structure) { 729 const gchar* messageTypeName = gst_structure_get_name(structure); 729 730 730 731 // Redirect messages are sent from elements, like qtdemux, to … … 1214 1215 gst_structure_free(m_mediaLocations); 1215 1216 1216 if (message->structure) { 1217 const GstStructure* structure = gst_message_get_structure(message); 1218 if (structure) { 1217 1219 // This structure can contain: 1218 1220 // - both a new-location string and embedded locations structure 1219 1221 // - or only a new-location string. 1220 m_mediaLocations = gst_structure_copy( message->structure);1222 m_mediaLocations = gst_structure_copy(structure); 1221 1223 const GValue* locations = gst_structure_get_value(m_mediaLocations, "locations"); 1222 1224
Note: See TracChangeset
for help on using the changeset viewer.